Package org.bouncycastle.crypto.params
Class RSAPrivateCrtKeyParameters
- java.lang.Object
-
- org.bouncycastle.crypto.params.AsymmetricKeyParameter
-
- org.bouncycastle.crypto.params.RSAKeyParameters
-
- org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
-
- All Implemented Interfaces:
javax.security.auth.Destroyable,CipherParameters
public class RSAPrivateCrtKeyParameters extends RSAKeyParameters
-
-
Constructor Summary
Constructors Constructor Description RSAPrivateCrtKeyParameters(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger dP, java.math.BigInteger dQ, java.math.BigInteger qInv)RSAPrivateCrtKeyParameters(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger dP, java.math.BigInteger dQ, java.math.BigInteger qInv, boolean isInternal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy this object, dropping its references to the CRT factors and exponents along with the inherited private exponent.java.math.BigIntegergetDP()java.math.BigIntegergetDQ()java.math.BigIntegergetP()java.math.BigIntegergetPublicExponent()java.math.BigIntegergetQ()java.math.BigIntegergetQInv()-
Methods inherited from class org.bouncycastle.crypto.params.RSAKeyParameters
getExponent, getModulus, isDestroyed, validateModulus
-
Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
isPrivate
-
-
-
-
Constructor Detail
-
RSAPrivateCrtKeyParameters
public RSAPrivateCrtKeyParameters(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger dP, java.math.BigInteger dQ, java.math.BigInteger qInv)
-
RSAPrivateCrtKeyParameters
public RSAPrivateCrtKeyParameters(java.math.BigInteger modulus, java.math.BigInteger publicExponent, java.math.BigInteger privateExponent, java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger dP, java.math.BigInteger dQ, java.math.BigInteger qInv, boolean isInternal)
-
-
Method Detail
-
getPublicExponent
public java.math.BigInteger getPublicExponent()
-
getP
public java.math.BigInteger getP()
-
getQ
public java.math.BigInteger getQ()
-
getDP
public java.math.BigInteger getDP()
-
getDQ
public java.math.BigInteger getDQ()
-
getQInv
public java.math.BigInteger getQInv()
-
destroy
public void destroy()
Destroy this object, dropping its references to the CRT factors and exponents along with the inherited private exponent. The (public) modulus and public exponent are retained.As
BigIntegeris immutable the values cannot be zeroized in place; destruction drops the internal references so the values become unreachable (cleared on garbage collection). After destruction the secret-bearing accessors throwIllegalStateException.- Specified by:
destroyin interfacejavax.security.auth.Destroyable- Overrides:
destroyin classRSAKeyParameters
-
-