de.flexiprovider.pqc.ots.merkle
Class MerkleOTSPublicKey
java.lang.Object
|
+--de.flexiprovider.api.keys.PublicKey
|
+--de.flexiprovider.pqc.ots.merkle.MerkleOTSPublicKey
- All Implemented Interfaces:
- java.security.Key, Key, java.security.PublicKey, java.io.Serializable
- public class MerkleOTSPublicKey
- extends PublicKey
This class implements the MerkleOTS public key.
- Author:
- Elena Klintsevich
- See Also:
MerkleOTSKeyPairGenerator, Serialized Form
| Fields inherited from interface java.security.Key |
serialVersionUID |
| Fields inherited from interface java.security.PublicKey |
serialVersionUID |
| Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MerkleOTSPublicKey
protected MerkleOTSPublicKey(java.lang.String oid,
byte[][] keyBytes)
- Construct a new MerkleOTS public key.
- Parameters:
oid - the OID of the algorithmkeyBytes - the key bytes
MerkleOTSPublicKey
protected MerkleOTSPublicKey(MerkleOTSPublicKeySpec keySpec)
- Construct a new MerkleOTS public key from the given key specification.
- Parameters:
keySpec - a MerkleOTSPublicKeySpec
getAlgorithm
public java.lang.String getAlgorithm()
- Returns:
- the OID of the algorithm
getOIDString
protected java.lang.String getOIDString()
- Returns:
- the OID of the algorithm
getKeyBytes
protected byte[][] getKeyBytes()
- Returns:
- the key bytes
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getOID
protected codec.asn1.ASN1ObjectIdentifier getOID()
- Overrides:
getOID in class PublicKey
- Returns:
- the OID to encode in the SubjectPublicKeyInfo structure
getAlgParams
protected codec.asn1.ASN1Type getAlgParams()
- Overrides:
getAlgParams in class PublicKey
- Returns:
- the algorithm parameters to encode in the SubjectPublicKeyInfo
structure
getKeyData
protected byte[] getKeyData()
- Overrides:
getKeyData in class PublicKey
- Returns:
- the keyData to encode in the SubjectPublicKeyInfo structure