Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security.spec

Class RSAPrivateCrtKeySpec

java.lang.Object
|
+--java.security.spec.RSAPrivateKeySpec
   |
   +--java.security.spec.RSAPrivateCrtKeySpec


public class RSAPrivateCrtKeySpec

extends RSAPrivateKeySpec

RSA Private Certificate Key class Specification. Used to maintain the RSA Private Certificate Keys with the Chinese Remainder Theorem(CRT) as specified by PKCS#1.

Since:Author:

Constructor Summary

RSAPrivateCrtKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger primeP, java.math.BigInteger primeQ, java.math.BigInteger primeExponentP, java.math.BigInteger primeExponentQ, java.math.BigInteger crtCoefficient)

Constructs a new RSAPrivateKeySpec with the specified variables.

Method Summary

java.math.BigIntegergetCrtCoefficient()

Gets the RSA CRT coefficient.
java.math.BigIntegergetPrimeExponentP()

Gets the RSA prime exponent P.
java.math.BigIntegergetPrimeExponentQ()

Gets the RSA prime exponent P.
java.math.BigIntegergetPrimeP()

Gets the RSA prime P.
java.math.BigIntegergetPrimeQ()

Gets the RSA prime Q.
java.math.BigIntegergetPublicExponent()

Gets the RSA public exponent.

Constructor Details

RSAPrivateCrtKeySpec

public RSAPrivateCrtKeySpec(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger primeP, java.math.BigInteger primeQ, java.math.BigInteger primeExponentP, java.math.BigInteger primeExponentQ, java.math.BigInteger crtCoefficient)

Constructs a new RSAPrivateKeySpec with the specified variables.

Parameters:


Method Details

getCrtCoefficient

public BigInteger getCrtCoefficient()

Gets the RSA CRT coefficient.

Returns:


getPrimeExponentP

public BigInteger getPrimeExponentP()

Gets the RSA prime exponent P.

Returns:


getPrimeExponentQ

public BigInteger getPrimeExponentQ()

Gets the RSA prime exponent P.

Returns:


getPrimeP

public BigInteger getPrimeP()

Gets the RSA prime P.

Returns:


getPrimeQ

public BigInteger getPrimeQ()

Gets the RSA prime Q.

Returns:


getPublicExponent

public BigInteger getPublicExponent()

Gets the RSA public exponent.

Returns: