RSAOtherPrimeInfopublic class RSAOtherPrimeInfo extends Object This class represents the triplet (prime, exponent, and coefficient)
inside RSA's OtherPrimeInfo structure, as defined in the PKCS#1 v2.1.
The ASN.1 syntax of RSA's OtherPrimeInfo is as follows:
OtherPrimeInfo ::= SEQUENCE {
prime INTEGER,
exponent INTEGER,
coefficient INTEGER
}
|
Fields Summary |
---|
private BigInteger | prime | private BigInteger | primeExponent | private BigInteger | crtCoefficient |
Constructors Summary |
---|
public RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)Creates a new RSAOtherPrimeInfo
given the prime, primeExponent, and
crtCoefficient as defined in PKCS#1.
if (prime == null) {
throw new NullPointerException("the prime parameter must be " +
"non-null");
}
if (primeExponent == null) {
throw new NullPointerException("the primeExponent parameter " +
"must be non-null");
}
if (crtCoefficient == null) {
throw new NullPointerException("the crtCoefficient parameter " +
"must be non-null");
}
this.prime = prime;
this.primeExponent = primeExponent;
this.crtCoefficient = crtCoefficient;
|
Methods Summary |
---|
public final java.math.BigInteger | getCrtCoefficient()Returns the prime's crtCoefficient.
return this.crtCoefficient;
| public final java.math.BigInteger | getExponent()Returns the prime's exponent.
return this.primeExponent;
| public final java.math.BigInteger | getPrime()Returns the prime.
return this.prime;
|
|