Class DSAKeyHWAttributes

  • All Implemented Interfaces:
    KeyHWAttributes, java.io.Serializable

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

      Constructors 
      Constructor Description
      DSAKeyHWAttributes​(byte keyType, byte keyUsage)
      This method constructs a new DSAKeyHWAttributes object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte getKeyType()
      This method returns a byte that represents the Key Type.
      byte getKeyUsage()
      This method returns a byte that represents the Key Usage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DSAKeyHWAttributes

        public DSAKeyHWAttributes​(byte keyType,
                                  byte keyUsage)
                           throws java.security.InvalidParameterException
        This method constructs a new DSAKeyHWAttributes object.
        Throws:
        java.security.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 Detail

      • 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