Class DSAKeyHWAttributes

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

public final class DSAKeyHWAttributes extends Object implements KeyHWAttributes
This class defines the key attributes that are defined for Hardware DSA keys.
See Also:
  • Constructor Details

    • DSAKeyHWAttributes

      public DSAKeyHWAttributes(byte keyType, byte keyUsage) throws InvalidParameterException
      This method constructs a new DSAKeyHWAttributes object.
      Throws:
      InvalidParameterException - if the key type or usage is invalid i.e. key type is not KeyHWAttributeValues.PKDS or if key usage is not KeyHWAttributeValues.SIGNATURE.
  • Method Details

    • getKeyType

      public byte getKeyType()
      This method returns a byte that represents the Key Type. The Key Type determines where this key pair is to be stored.
      Specified by:
      getKeyType in interface KeyHWAttributes
      Returns:
      the key type
    • getKeyUsage

      public byte getKeyUsage()
      This method returns a byte that represents the Key Usage. The Key Usage determines what the key pair can be used for.
      Specified by:
      getKeyUsage in interface KeyHWAttributes
      Returns:
      the key usage