public final class AsymmetricLMSPrivateKey extends AsymmetricLMSKey implements javax.security.auth.Destroyable, AsymmetricPrivateKey
L| Constructor and Description |
|---|
AsymmetricLMSPrivateKey(byte[] encoding)
Construct a key from an encoding of a PrivateKeyInfo.
|
AsymmetricLMSPrivateKey(int levels,
byte[] keyData,
byte[] publicData) |
AsymmetricLMSPrivateKey(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.
|
AsymmetricLMSPrivateKey |
extractKeyShard(int usageCount) |
byte[] |
getEncoded()
Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
|
long |
getIndex() |
protected java.lang.Object |
getInternalKey() |
byte[] |
getPublicData() |
byte[] |
getSecret() |
long |
getUsagesRemaining() |
int |
hashCode()
Return the hashCode for the key.
|
boolean |
isDestroyed() |
checkApprovedOnlyModeStatus, getAlgorithm, getL, isThreadCorrectMode, zeroizeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAlgorithmpublic AsymmetricLMSPrivateKey(int levels,
byte[] keyData,
byte[] publicData)
public AsymmetricLMSPrivateKey(byte[] encoding)
throws java.io.IOException
encoding - the DER encoding of the key.java.io.IOExceptionpublic AsymmetricLMSPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
keyInfo - the PrivateKeyInfo containing the key.java.io.IOExceptionpublic long getUsagesRemaining()
public long getIndex()
public byte[] getSecret()
public byte[] getPublicData()
public AsymmetricLMSPrivateKey extractKeyShard(int usageCount)
public byte[] getEncoded()
AsymmetricKeygetEncoded in interface AsymmetricKeyprotected java.lang.Object getInternalKey()
getInternalKey in class LMS.KeyCachepublic void destroy()
destroy in interface javax.security.auth.Destroyablepublic boolean isDestroyed()
isDestroyed in interface javax.security.auth.Destroyablepublic boolean equals(java.lang.Object o)
Key