FileDocCategorySizeDatePackage
RSAOtherPrimeInfo.javaAPI DocJava SE 5 API2492Fri Aug 26 14:57:18 BST 2005java.security.spec

RSAOtherPrimeInfo

public 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
}

author
Valerie Peng
version
1.6 03/12/19
see
RSAPrivateCrtKeySpec
see
java.security.interfaces.RSAMultiPrimePrivateCrtKey
since
1.4

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.

param
prime the prime factor of n.
param
primeExponent the exponent.
param
crtCoefficient the Chinese Remainder Theorem coefficient.
exception
NullPointerException if any of the parameters, i.e. prime, primeExponent, crtCoefficient, is null.

	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.BigIntegergetCrtCoefficient()
Returns the prime's crtCoefficient.

return
the crtCoefficient.

	return this.crtCoefficient;
    
public final java.math.BigIntegergetExponent()
Returns the prime's exponent.

return
the primeExponent.

	return this.primeExponent;
    
public final java.math.BigIntegergetPrime()
Returns the prime.

return
the prime.

	return this.prime;