Skip to content

Most visited

Recently visited

navigation
Added in API level 1

RSAPrivateCrtKeySpec

public class RSAPrivateCrtKeySpec
extends RSAPrivateKeySpec

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


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.

Inherited methods

From class java.security.spec.RSAPrivateKeySpec
From class java.lang.Object

Public constructors

RSAPrivateCrtKeySpec

Added in API level 1
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.

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.

Public methods

getCrtCoefficient

Added in API level 1
BigInteger getCrtCoefficient ()

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

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

getPrimeExponentP

Added in API level 1
BigInteger getPrimeExponentP ()

Returns the exponent of the prime p.

Returns
BigInteger the exponent of the prime p.

getPrimeExponentQ

Added in API level 1
BigInteger getPrimeExponentQ ()

Returns the exponent of the prime q.

Returns
BigInteger the exponent of the prime q.

getPrimeP

Added in API level 1
BigInteger getPrimeP ()

Returns the prime factor p.

Returns
BigInteger the prime factor p.

getPrimeQ

Added in API level 1
BigInteger getPrimeQ ()

Returns the prime factor q.

Returns
BigInteger the prime factor q.

getPublicExponent

Added in API level 1
BigInteger getPublicExponent ()

Returns the public exponent e.

Returns
BigInteger the public exponent e.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.