public final class AsymmetricXDHPrivateKey extends AsymmetricXDHKey implements javax.security.auth.Destroyable, AsymmetricPrivateKey
| Constructor and Description |
|---|
AsymmetricXDHPrivateKey(Algorithm algorithm,
byte[] keyData,
byte[] publicData) |
AsymmetricXDHPrivateKey(byte[] encoding)
Construct a key from an encoding of a PrivateKeyInfo.
|
AsymmetricXDHPrivateKey(PrivateKeyInfo keyInfo)
Construct a key from a 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() |
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
byte[] |
getPublicData() |
byte[] |
getSecret() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
protected void |
zeroize() |
checkApprovedOnlyModeStatus, getAlgorithmclone, getClass, notify, notifyAll, toString, wait, wait, waitgetAlgorithmpublic AsymmetricXDHPrivateKey(Algorithm algorithm, byte[] keyData, byte[] publicData)
public AsymmetricXDHPrivateKey(byte[] encoding)
throws java.io.IOException
encoding - the DER encoding of the key.java.io.IOExceptionpublic AsymmetricXDHPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
keyInfo - the PrivateKeyInfo containing the key.java.io.IOExceptionpublic byte[] getSecret()
public byte[] getPublicData()
public byte[] getEncoded()
AsymmetricKeygetEncoded in interface AsymmetricKeyprotected void zeroize()
zeroize in class AsymmetricXDHKeypublic void destroy()
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyablepublic boolean equals(java.lang.Object o)
Keypublic int hashCode()
Keyprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable