public final class AsymmetricLMSPublicKey extends AsymmetricLMSKey implements AsymmetricPublicKey
L
Constructor and Description |
---|
AsymmetricLMSPublicKey(byte[] encoding)
Construct a key from an encoding of a SubjectPublicKeyInfo.
|
AsymmetricLMSPublicKey(int levels,
byte[] keyData) |
AsymmetricLMSPublicKey(SubjectPublicKeyInfo info) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.lang.Object |
getInternalKey() |
byte[] |
getPublicData() |
int |
hashCode()
Return the hashCode for the key.
|
checkApprovedOnlyModeStatus, getAlgorithm, getL, isThreadCorrectMode, zeroize
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public AsymmetricLMSPublicKey(int levels, byte[] keyData)
public AsymmetricLMSPublicKey(byte[] encoding) throws java.io.IOException
encoding
- the DER encoding of the key.java.io.IOException
public AsymmetricLMSPublicKey(SubjectPublicKeyInfo info) throws java.io.IOException
java.io.IOException
public byte[] getPublicData()
public byte[] getEncoded()
AsymmetricKey
getEncoded
in interface AsymmetricKey
protected java.lang.Object getInternalKey()
getInternalKey
in class LMS.KeyCache
public boolean equals(java.lang.Object o)
Key