java.security.spec

Class RSAOtherPrimeInfo

public class RSAOtherPrimeInfo extends Object

An in-memory representation of the RSA triplet (prime, exponent, and coefficient) inside a PKCS#1 v2.1 OtherPrimeInfo structure.

Since: 1.4

See Also: RSAPrivateCrtKeySpec RSAMultiPrimePrivateCrtKey

Constructor Summary
RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)
Constructs a new RSAOtherPrimeInfo given the PKCS#1 MPIs.
Method Summary
BigIntegergetCrtCoefficient()
Returns the CRT Coefficient.
BigIntegergetExponent()
Returns the prime's exponent.
BigIntegergetPrime()
Returns the prime.

Constructor Detail

RSAOtherPrimeInfo

public RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)
Constructs a new RSAOtherPrimeInfo given the PKCS#1 MPIs.

Parameters: prime the prime factor of n. primeExponent the exponent. crtCoefficient the Chinese Remainder Theorem coefficient.

Throws: NullPointerException if any of the parameters is null.

Method Detail

getCrtCoefficient

public final BigInteger getCrtCoefficient()
Returns the CRT Coefficient.

Returns: the CRT Coefficient.

getExponent

public final BigInteger getExponent()
Returns the prime's exponent.

Returns: the primeExponent.

getPrime

public final BigInteger getPrime()
Returns the prime.

Returns: the prime.