public final class AsymmetricEdDSAPrivateKey extends AsymmetricEdDSAKey implements javax.security.auth.Destroyable, AsymmetricPrivateKey
Constructor and Description |
---|
AsymmetricEdDSAPrivateKey(Algorithm algorithm,
byte[] keyData,
byte[] publicData) |
AsymmetricEdDSAPrivateKey(byte[] encoding)
Construct a key from an encoding of a PrivateKeyInfo.
|
AsymmetricEdDSAPrivateKey(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.
|
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() |
checkApprovedOnlyModeStatus, getAlgorithm, zeroize
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public AsymmetricEdDSAPrivateKey(Algorithm algorithm, byte[] keyData, byte[] publicData)
public AsymmetricEdDSAPrivateKey(byte[] encoding) throws java.io.IOException
encoding
- the DER encoding of the key.java.io.IOException
public AsymmetricEdDSAPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
keyInfo
- the PrivateKeyInfo containing the key.java.io.IOException
public byte[] getSecret()
public byte[] getPublicData()
public 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