Android APIs
public class

RSAMultiPrimePrivateCrtKeySpec

extends RSAPrivateKeySpec
java.lang.Object
   ↳ java.security.spec.RSAPrivateKeySpec
     ↳ java.security.spec.RSAMultiPrimePrivateCrtKeySpec

Class Overview

The key specification of a RSA multi-prime private key with the Chinese Remainder Theorem (CRT) information values used.

Defined in the PKCS #1 v2.1 standard.

Summary

Public Constructors
RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)
Creates a new RSAMultiPrimePrivateCrtKeySpec with the specified modulus, public exponent, private exponent, prime factors, prime exponents, crt coefficient, and additional primes.
Public Methods
BigInteger getCrtCoefficient()
Returns the CRT coefficient, q^-1 mod p.
RSAOtherPrimeInfo[] getOtherPrimeInfo()
Returns the information for the additional primes.
BigInteger getPrimeExponentP()
Returns the exponent of the prime p.
BigInteger getPrimeExponentQ()
Returns the exponent of the prime q.
BigInteger getPrimeP()
Returns the prime factor p.
BigInteger getPrimeQ()
Returns the prime factor q.
BigInteger getPublicExponent()
Returns the public exponent e.
[Expand]
Inherited Methods
From class java.security.spec.RSAPrivateKeySpec
From class java.lang.Object

Public Constructors

public RSAMultiPrimePrivateCrtKeySpec (BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)

Added in API level 1

Creates a new RSAMultiPrimePrivateCrtKeySpec with the specified modulus, public exponent, private exponent, prime factors, prime exponents, crt coefficient, and additional primes.

Parameters
modulus BigInteger: the modulus n.
publicExponent BigInteger: the public exponent e.
privateExponent BigInteger: the private exponent d.
primeP BigInteger: the prime factor p of n.
primeQ BigInteger: the prime factor q of n.
primeExponentP BigInteger: the exponent of the prime p.
primeExponentQ BigInteger: the exponent of the prime q.
crtCoefficient BigInteger: the CRT coefficient q^-1 mod p.
otherPrimeInfo RSAOtherPrimeInfo: the information for the additional primes or null if there are only the two primes (p, q).
Throws
IllegalArgumentException if otherPrimeInfo is not null but empty.

Public Methods

public BigInteger getCrtCoefficient ()

Added in API level 1

Returns the CRT coefficient, q^-1 mod p.

Returns
BigInteger the CRT coefficient, q^-1 mod p.

public RSAOtherPrimeInfo[] getOtherPrimeInfo ()

Added in API level 1

Returns the information for the additional primes.

Returns
RSAOtherPrimeInfo[] the information for the additional primes, or null if there are only the two primes (p, q).

public BigInteger getPrimeExponentP ()

Added in API level 1

Returns the exponent of the prime p.

Returns
BigInteger the exponent of the prime p.

public BigInteger getPrimeExponentQ ()

Added in API level 1

Returns the exponent of the prime q.

Returns
BigInteger the exponent of the prime q.

public BigInteger getPrimeP ()

Added in API level 1

Returns the prime factor p.

Returns
BigInteger the prime factor p.

public BigInteger getPrimeQ ()

Added in API level 1

Returns the prime factor q.

Returns
BigInteger the prime factor q.

public BigInteger getPublicExponent ()

Added in API level 1

Returns the public exponent e.

Returns
BigInteger the public exponent e.