public final class AsymmetricRSAPrivateKey extends AsymmetricRSAKey implements javax.security.auth.Destroyable, AsymmetricPrivateKey
AsymmetricRSAKey.UsageDEF_ALG_ID, modulus, PSS_ALG_ID, rsaAlgIdentifier| Constructor and Description |
|---|
AsymmetricRSAPrivateKey(Algorithm algorithm,
java.math.BigInteger modulus,
java.math.BigInteger privateExponent) |
AsymmetricRSAPrivateKey(Algorithm algorithm,
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) |
AsymmetricRSAPrivateKey(Algorithm algorithm,
byte[] privateKeyInfoEncoding) |
AsymmetricRSAPrivateKey(Algorithm algorithm,
PrivateKeyInfo privateKeyInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
boolean |
equals(java.lang.Object o)
Return true if o is an equivalent key to this.
|
Algorithm |
getAlgorithm()
Return the algorithm this RSA key is for.
|
java.math.BigInteger |
getDP() |
java.math.BigInteger |
getDQ() |
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
java.math.BigInteger |
getModulus()
Return the modulus for this RSA key.
|
java.math.BigInteger |
getP() |
java.math.BigInteger |
getPrivateExponent() |
java.math.BigInteger |
getPublicExponent() |
java.math.BigInteger |
getQ() |
java.math.BigInteger |
getQInv() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
canBeUsed, checkApprovedOnlyModeStatus, isThreadCorrectMode, zeroizepublic AsymmetricRSAPrivateKey(Algorithm algorithm, 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)
public AsymmetricRSAPrivateKey(Algorithm algorithm, java.math.BigInteger modulus, java.math.BigInteger privateExponent)
public AsymmetricRSAPrivateKey(Algorithm algorithm, byte[] privateKeyInfoEncoding)
public AsymmetricRSAPrivateKey(Algorithm algorithm, PrivateKeyInfo privateKeyInfo)
public Algorithm getAlgorithm()
getAlgorithm in interface KeygetAlgorithm in class AsymmetricRSAKeypublic java.math.BigInteger getModulus()
getModulus in class AsymmetricRSAKeypublic java.math.BigInteger getPublicExponent()
public java.math.BigInteger getPrivateExponent()
public java.math.BigInteger getP()
public java.math.BigInteger getQ()
public java.math.BigInteger getDP()
public java.math.BigInteger getDQ()
public java.math.BigInteger getQInv()
public final byte[] getEncoded()
AsymmetricKeygetEncoded in interface AsymmetricKeypublic void destroy()
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyablepublic boolean equals(java.lang.Object o)
Key