public class

RSAPrivateCrtKeySpec

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

Class Overview

The key specification of a RSA private key using Chinese Remainder Theorem (CRT) values.

Defined in the PKCS #1 v2.1 standard.

Summary

Public Constructors
RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
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.
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 RSAPrivateCrtKeySpec (BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)

Since: 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 the modulus n.
publicExponent the public exponent e.
privateExponent the private exponent d.
primeP the prime factor p of n.
primeQ the prime factor q of n.
primeExponentP the exponent of the prime p.
primeExponentQ the exponent of the prime q.
crtCoefficient the CRT coefficient q^-1 mod p.

Public Methods

public BigInteger getCrtCoefficient ()

Since: API Level 1

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

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

public BigInteger getPrimeExponentP ()

Since: API Level 1

Returns the exponent of the prime p.

Returns
  • the exponent of the prime p.

public BigInteger getPrimeExponentQ ()

Since: API Level 1

Returns the exponent of the prime q.

Returns
  • the exponent of the prime q.

public BigInteger getPrimeP ()

Since: API Level 1

Returns the prime factor p.

Returns
  • the prime factor p.

public BigInteger getPrimeQ ()

Since: API Level 1

Returns the prime factor q.

Returns
  • the prime factor q.

public BigInteger getPublicExponent ()

Since: API Level 1

Returns the public exponent e.

Returns
  • the public exponent e.