java.security.spec
Class RSAOtherPrimeInfo

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.spec.RSAOtherPrimeInfo

public class RSAOtherPrimeInfo
extends Object sample code for java.lang.Object definition code for java.lang.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
   }

 

Since:
1.4
See Also:
RSAPrivateCrtKeySpec sample code for java.security.spec.RSAPrivateCrtKeySpec definition code for java.security.spec.RSAPrivateCrtKeySpec , RSAMultiPrimePrivateCrtKey sample code for java.security.interfaces.RSAMultiPrimePrivateCrtKey definition code for java.security.interfaces.RSAMultiPrimePrivateCrtKey

Constructor Summary
RSAOtherPrimeInfo sample code for java.security.spec.RSAOtherPrimeInfo.RSAOtherPrimeInfo(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.RSAOtherPrimeInfo.RSAOtherPrimeInfo(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) (BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  prime, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  primeExponent, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  crtCoefficient)
          Creates a new RSAOtherPrimeInfo given the prime, primeExponent, and crtCoefficient as defined in PKCS#1.
 
Method Summary
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getCrtCoefficient sample code for java.security.spec.RSAOtherPrimeInfo.getCrtCoefficient() definition code for java.security.spec.RSAOtherPrimeInfo.getCrtCoefficient() ()
          Returns the prime's crtCoefficient.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getExponent sample code for java.security.spec.RSAOtherPrimeInfo.getExponent() definition code for java.security.spec.RSAOtherPrimeInfo.getExponent() ()
          Returns the prime's exponent.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getPrime sample code for java.security.spec.RSAOtherPrimeInfo.getPrime() definition code for java.security.spec.RSAOtherPrimeInfo.getPrime() ()
          Returns the prime.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

RSAOtherPrimeInfo sample code for java.security.spec.RSAOtherPrimeInfo(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.RSAOtherPrimeInfo(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger)

public RSAOtherPrimeInfo(BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  prime,
                         BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  primeExponent,
                         BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  crtCoefficient)
Creates a new RSAOtherPrimeInfo given the prime, primeExponent, and crtCoefficient as defined in PKCS#1.

Parameters:
prime - the prime factor of n.
primeExponent - the exponent.
crtCoefficient - the Chinese Remainder Theorem coefficient.
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if any of the parameters, i.e. prime, primeExponent, crtCoefficient, is null.
Method Detail

getPrime sample code for java.security.spec.RSAOtherPrimeInfo.getPrime() definition code for java.security.spec.RSAOtherPrimeInfo.getPrime()

public final BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getPrime()
Returns the prime.

Returns:
the prime.

getExponent sample code for java.security.spec.RSAOtherPrimeInfo.getExponent() definition code for java.security.spec.RSAOtherPrimeInfo.getExponent()

public final BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getExponent()
Returns the prime's exponent.

Returns:
the primeExponent.

getCrtCoefficient sample code for java.security.spec.RSAOtherPrimeInfo.getCrtCoefficient() definition code for java.security.spec.RSAOtherPrimeInfo.getCrtCoefficient()

public final BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getCrtCoefficient()
Returns the prime's crtCoefficient.

Returns:
the crtCoefficient.