public final class AsymmetricRSAPrivateKey extends AsymmetricRSAKey implements javax.security.auth.Destroyable, AsymmetricPrivateKey
AsymmetricRSAKey.Usage
DEF_ALG_ID, modulus, 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.
|
protected void |
finalize() |
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, zeroize
public 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 Key
getAlgorithm
in class AsymmetricRSAKey
public java.math.BigInteger getModulus()
getModulus
in class AsymmetricRSAKey
public 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()
AsymmetricKey
getEncoded
in interface AsymmetricKey
public void destroy()
destroy
in interface javax.security.auth.Destroyable
public boolean isDestroyed()
isDestroyed
in interface javax.security.auth.Destroyable
public boolean equals(java.lang.Object o)
Key
public int hashCode()
Key
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable