- java.lang.Object
-
- com.ibm.crypto.hdwrCCA.provider.DilithiumPublicKey
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Key
,java.security.PublicKey
public class DilithiumPublicKey extends java.lang.Object implements java.security.PublicKey
A public hardware key for the CRYSTALS-Dilithium algorithm. This key contains a token (which can be either a tokenized representation of a clear key, a key encrypted under the master key, or a label to a stored key in the PKDS), encoded bytes of the raw key material, and attributes (KeyHWAttributeValues, which include the key type and key usage).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DilithiumPublicKey(byte[] token)
Create a CRYSTALS-Dilithium public key
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
Returns the algorithmbyte[]
getEncoded()
Returns the encoded raw key material for this public keyjava.lang.String
getFormat()
Return the format for this key.byte[]
getToken()
Returns a clone of the public key token
-
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
Returns the algorithm- Specified by:
getAlgorithm
in interfacejava.security.Key
- Returns:
- the algorithm
-
getFormat
public java.lang.String getFormat()
Return the format for this key.- Specified by:
getFormat
in interfacejava.security.Key
- Returns:
- the format for this key
-
getEncoded
public byte[] getEncoded()
Returns the encoded raw key material for this public key- Specified by:
getEncoded
in interfacejava.security.Key
- Returns:
- encoded raw key material
-
getToken
public byte[] getToken()
Returns a clone of the public key token- Returns:
- the public key token
-
-