public final class AsymmetricDHPrivateKey extends AsymmetricDHKey implements AsymmetricPrivateKey
algorithm, domainParameters| Constructor and Description |
|---|
AsymmetricDHPrivateKey(Algorithm algorithm,
byte[] enc) |
AsymmetricDHPrivateKey(Algorithm algorithm,
DHDomainParameters params,
java.math.BigInteger x) |
AsymmetricDHPrivateKey(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 Diffie-Hellman key is for.
|
DHDomainParameters |
getDomainParameters()
Return the Diffie-Hellman domain parameters associated with this key.
|
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
java.math.BigInteger |
getX() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
checkApprovedOnlyModeStatus, isThreadCorrectMode, zeroizepublic AsymmetricDHPrivateKey(Algorithm algorithm, DHDomainParameters params, java.math.BigInteger x)
public AsymmetricDHPrivateKey(Algorithm algorithm, byte[] enc)
public AsymmetricDHPrivateKey(Algorithm algorithm, PrivateKeyInfo privateKeyInfo)
public final Algorithm getAlgorithm()
getAlgorithm in interface KeygetAlgorithm in class AsymmetricDHKeypublic final DHDomainParameters getDomainParameters()
getDomainParameters in class AsymmetricDHKeypublic final byte[] getEncoded()
AsymmetricKeygetEncoded in interface AsymmetricKeypublic java.math.BigInteger getX()
public void destroy()
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyablepublic int hashCode()
Keypublic boolean equals(java.lang.Object o)
Key