FileDocCategorySizeDatePackage
RSAOtherPrimeInfo.javaAPI DocAndroid 1.5 API3128Wed May 06 22:41:06 BST 2009java.security.spec

RSAOtherPrimeInfo

public class RSAOtherPrimeInfo extends Object
The additional prime information specified as triplet of primes, a prime exponent, and a Chinese Remainder Theorem (CRT) coefficient.

Defined in the PKCS #1 v2.1 standard.

since
Android 1.0

Fields Summary
private final BigInteger
prime
private final BigInteger
primeExponent
private final BigInteger
crtCoefficient
Constructors Summary
public RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)
Creates a new {@code RSAOtherPrimeInfo} with the specified prime, exponent, and CRT coefficient.

param
prime the prime factor.
param
primeExponent the prime exponent.
param
crtCoefficient the CRT coefficient.
since
Android 1.0

        if (prime == null) {
            throw new NullPointerException(Messages.getString("security.83", "prime")); //$NON-NLS-1$ //$NON-NLS-2$
        }
        if (primeExponent == null) {
            throw new NullPointerException(Messages.getString("security.83", "primeExponent")); //$NON-NLS-1$ //$NON-NLS-2$
        }
        if (crtCoefficient == null) {
            throw new NullPointerException(Messages.getString("security.83", "crtCoefficient")); //$NON-NLS-1$ //$NON-NLS-2$
        }
        this.prime = prime;
        this.primeExponent = primeExponent;
        this.crtCoefficient = crtCoefficient;
    
Methods Summary
public final java.math.BigIntegergetCrtCoefficient()
Returns the CRT coefficient.

return
the CRT coefficient.
since
Android 1.0

        return crtCoefficient;
    
public final java.math.BigIntegergetExponent()
Returns the exponent.

return
the exponent.
since
Android 1.0

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

return
the prime factor.
since
Android 1.0

        return prime;