Class MLDSAKeyAttributes

java.lang.Object
com.ibm.crypto.hdwrCCA.provider.MLDSAKeyAttributes
All Implemented Interfaces:
KeyHWAttributes, Serializable

public final class MLDSAKeyAttributes extends Object implements KeyHWAttributes
This class represents key attributes defined for ML-DSA keys.
See Also:
  • Constructor Details

    • MLDSAKeyAttributes

      public MLDSAKeyAttributes(byte keyType) throws InvalidParameterException
      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

      public MLDSAKeyAttributes(byte keyType, byte keyUsage) throws InvalidParameterException
      This method constructs a new MLDSAKeyAttributes object.
      Parameters:
      keyType - the hardware key type
      keyUsage - 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 interface KeyHWAttributes
      Returns:
      a byte representing the key type
    • getKeyUsage

      public byte getKeyUsage()
      Retrieves the key usage attribute.
      Specified by:
      getKeyUsage in interface KeyHWAttributes
      Returns:
      a byte representing the key usage