java.lang.Object
com.ibm.crypto.hdwrCCA.provider.DilithiumKeyAttributes
- All Implemented Interfaces:
KeyHWAttributes
,Serializable
This class represents key attributes defined for CRYSTALS-Dilithium keys.
- See Also:
-
Field Summary
Fields inherited from interface com.ibm.crypto.hdwrCCA.provider.KeyHWAttributes
serialVersionUID
-
Constructor Summary
ConstructorsConstructorDescriptionDilithiumKeyAttributes
(byte keyType) This method constructs a new DilithiumKeyAttributes object.DilithiumKeyAttributes
(byte keyType, byte keyUsage) This method constructs a new DilithiumKeyAttributes object. -
Method Summary
Modifier and TypeMethodDescriptionbyte
Retrieves the key type attribute.byte
Retrieves the key usage attribute.
-
Constructor Details
-
DilithiumKeyAttributes
This method constructs a new DilithiumKeyAttributes object.- Parameters:
keyType
- the hardware key type- Throws:
InvalidParameterException
- if the key type or key usage is not valid or not recognized
-
DilithiumKeyAttributes
This method constructs a new DilithiumKeyAttributes object.- Parameters:
keyType
- the hardware key typekeyUsage
- the way that the key will be used- Throws:
InvalidParameterException
- if the key type or key usage is not valid or not recognized
-
-
Method Details
-
getKeyType
public byte getKeyType()Retrieves the key type attribute.- Specified by:
getKeyType
in interfaceKeyHWAttributes
- Returns:
- a byte representing the key type
-
getKeyUsage
public byte getKeyUsage()Retrieves the key usage attribute.- Specified by:
getKeyUsage
in interfaceKeyHWAttributes
- Returns:
- a byte representing the key usage
-