java.security.spec
Class RSAOtherPrimeInfo

java.lang.Object
  extended by java.security.spec.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
 BigInteger getCrtCoefficient()
          Returns the CRT Coefficient.
 BigInteger getExponent()
          Returns the prime's exponent.
 BigInteger getPrime()
          Returns the prime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getPrime

public final BigInteger getPrime()
Returns the prime.

Returns:
the prime.

getExponent

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

Returns:
the primeExponent.

getCrtCoefficient

public final BigInteger getCrtCoefficient()
Returns the CRT Coefficient.

Returns:
the CRT Coefficient.