- java.lang.Object
-
- com.ibm.crypto.hdwrCCA.provider.DilithiumKeyAttributes
-
- All Implemented Interfaces:
KeyHWAttributes
,java.io.Serializable
public final class DilithiumKeyAttributes extends java.lang.Object implements KeyHWAttributes
This class represents key attributes defined for CRYSTALS-Dilithium keys.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.ibm.crypto.hdwrCCA.provider.KeyHWAttributes
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description DilithiumKeyAttributes(byte keyType)
This method constructs a new DilithiumKeyAttributes object.DilithiumKeyAttributes(byte keyType, byte keyUsage)
This method constructs a new DilithiumKeyAttributes object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getKeyType()
Retrieves the key type attribute.byte
getKeyUsage()
Retrieves the key usage attribute.
-
-
-
Constructor Detail
-
DilithiumKeyAttributes
public DilithiumKeyAttributes(byte keyType) throws java.security.InvalidParameterException
This method constructs a new DilithiumKeyAttributes object.- Parameters:
keyType
- the hardware key type- Throws:
java.security.InvalidParameterException
- if the key type or key usage is not valid or not recognized
-
DilithiumKeyAttributes
public DilithiumKeyAttributes(byte keyType, byte keyUsage) throws java.security.InvalidParameterException
This method constructs a new DilithiumKeyAttributes object.- Parameters:
keyType
- the hardware key typekeyUsage
- the way that the key will be used- Throws:
java.security.InvalidParameterException
- if the key type or key usage is not valid or not recognized
-
-
Method Detail
-
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
-
-