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:
- CipherParameters, javax.security.auth.Destroyable
- public class RSAPrivateCrtKeyParameters
- extends RSAKeyParameters
|
Constructor Summary |
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 |
void |
destroy()
Destroy this object, dropping its references to the CRT factors and exponents along with
the inherited private exponent. |
java.math.BigInteger |
getDP()
|
java.math.BigInteger |
getDQ()
|
java.math.BigInteger |
getP()
|
java.math.BigInteger |
getPublicExponent()
|
java.math.BigInteger |
getQ()
|
java.math.BigInteger |
getQInv()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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 BigInteger is 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 throw
IllegalStateException.
- Specified by:
destroy in interface javax.security.auth.Destroyable- Overrides:
destroy in class RSAKeyParameters