public final class AsymmetricRSAPrivateKey extends AsymmetricRSAKey implements AsymmetricPrivateKey
AsymmetricRSAKey.UsageDEF_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 |
|---|---|
boolean |
equals(java.lang.Object o)
Return true if o is an equivalent key to this.
|
protected void |
finalize() |
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 |
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.
|
protected void |
zeroize() |
canBeUsed, checkApprovedOnlyModeStatus, getAlgorithm, getModulusclone, getClass, notify, notifyAll, toString, wait, wait, waitgetAlgorithmpublic 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 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 boolean equals(java.lang.Object o)
Keypublic int hashCode()
Keyprotected void zeroize()
zeroize in class AsymmetricRSAKeyprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable