模块 java.base

类 RSAOtherPrimeInfo

java.lang.Object
java.security.spec.RSAOtherPrimeInfo

public class RSAOtherPrimeInfo extends Object
此类表示 RSA 的 OtherPrimeInfo 结构中的三元组(素数、指数和系数),如 PKCS#1 v2.2 标准中所定义。 RSA的OtherPrimeInfo的ASN.1语法如下:
 OtherPrimeInfo ::= SEQUENCE {
  prime    INTEGER,
  exponent   INTEGER,
  coefficient INTEGER
 }

 
自从:
1.4
参见:
  • 构造方法详细信息

    • RSAOtherPrimeInfo

      public RSAOtherPrimeInfo(BigInteger  prime, BigInteger  primeExponent, BigInteger  crtCoefficient)
      给定 PKCS#1 中定义的素数、primeExponent 和 crtCoefficient 创建一个新的 RSAOtherPrimeInfo
      参数:
      prime - n 的质因数。
      primeExponent - 指数。
      crtCoefficient - 中国剩余定理系数。
      抛出:
      NullPointerException - 如果任何参数(即 primeprimeExponentcrtCoefficient)为空。
  • 方法详情

    • getPrime

      public final BigInteger  getPrime()
      返回质数。
      返回:
      素数。
    • getExponent

      public final BigInteger  getExponent()
      返回质数的指数。
      返回:
      质数指数。
    • getCrtCoefficient

      public final BigInteger  getCrtCoefficient()
      返回素数的 crtCoefficient。
      返回:
      crt 系数。