java命名空间java.security.spec类rsamultiprimeprivatecrtkeyspec的类成员方法:
rsamultiprimeprivatecrtkeyspec定义及介绍
本文导语:
rsamultiprimeprivatecrtkeyspec
public rsamultiprimeprivatecrtkeyspec(biginteger modulus,
biginteger publicexponent,
biginteger privateexponent,
biginteger ...
rsamultiprimeprivatecrtkeyspec
public rsamultiprimeprivatecrtkeyspec(biginteger modulus,
biginteger publicexponent,
biginteger privateexponent,
biginteger primep,
biginteger primeq,
biginteger primeexponentp,
biginteger primeexponentq,
biginteger crtcoefficient,
rsaotherprimeinfo[] otherprimeinfo)
- 给定系数、publicexponent、privateexponent、primep、primeq、primeexponentp、primeexponentq、crtcoefficient 和如 pkcs#1 v2.1 中所定义的 otherprimeinfo,创建一个新的
rsamultiprimeprivatecrtkeyspec。
注意,要复制 otherprimeinfo 的内容,以防止以后在构造此对象时发生修改。
- 参数:
modulus - 系数 n。publicexponent - 公用指数 e。privateexponent - 专用指数 d。primep - n 的素数因子 p。primeq - n 的素数因子 q。primeexponentp - 这是 d mod (p-1)。primeexponentq - 这是 d mod (q-1)。crtcoefficient - chinese remainder theorem 系数 q-1 除以 p 所得的余数。otherprimeinfo - 其余素数的三元组,如果仅有两个素数因子(p 和 q),则可以指定 null。
- 抛出:
nullpointerexception - 如果任一参数(即:modulus、publicexponent、privateexponent、primep、primeq、primeexponentp、primeexponentq 和 crtcoefficient)为 null。
illegalargumentexception - 如果为空(即:长度为 0),则指定 otherprimeinfo。
getpublicexponent
public biginteger getpublicexponent()
- 返回公用指数。
- 返回:
- 该公用指数。