Class MLDSAKeyAttributes
java.lang.Object
com.ibm.crypto.hdwrCCA.provider.MLDSAKeyAttributes
- All Implemented Interfaces:
KeyHWAttributes, Serializable
This class represents key attributes defined for ML-DSA keys.
- See Also:
-
Field Summary
Fields inherited from interface KeyHWAttributes
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionMLDSAKeyAttributes(byte keyType) This method constructs a new MLDSAKeyAttributes object.MLDSAKeyAttributes(byte keyType, byte keyUsage) This method constructs a new MLDSAKeyAttributes object. -
Method Summary
Modifier and TypeMethodDescriptionbyteRetrieves the key type attribute.byteRetrieves the key usage attribute.
-
Constructor Details
-
MLDSAKeyAttributes
This method constructs a new MLDSAKeyAttributes object.- Parameters:
keyType- the hardware key type- Throws:
InvalidParameterException- if the key type or key usage is not valid or not recognized
-
MLDSAKeyAttributes
This method constructs a new MLDSAKeyAttributes 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:
getKeyTypein interfaceKeyHWAttributes- Returns:
- a byte representing the key type
-
getKeyUsage
public byte getKeyUsage()Retrieves the key usage attribute.- Specified by:
getKeyUsagein interfaceKeyHWAttributes- Returns:
- a byte representing the key usage
-