Class RSAPrivateCrtKeyParameters
java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
org.bouncycastle.crypto.params.RSAKeyParameters
org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters
- All Implemented Interfaces:
Destroyable, CipherParameters
-
Constructor Summary
ConstructorsConstructorDescriptionRSAPrivateCrtKeyParameters(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) RSAPrivateCrtKeyParameters(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv, boolean isInternal) -
Method Summary
Methods inherited from class RSAKeyParameters
getExponent, getModulus, isDestroyed, validateModulusMethods inherited from class AsymmetricKeyParameter
isPrivate
-
Constructor Details
-
RSAPrivateCrtKeyParameters
public RSAPrivateCrtKeyParameters(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv) -
RSAPrivateCrtKeyParameters
public RSAPrivateCrtKeyParameters(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger p, BigInteger q, BigInteger dP, BigInteger dQ, BigInteger qInv, boolean isInternal)
-
-
Method Details
-
getPublicExponent
-
getP
-
getQ
-
getDP
-
getDQ
-
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 interfaceDestroyable- Overrides:
destroyin classRSAKeyParameters
-