Class ECHWKeyAttributes

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

    public final class ECHWKeyAttributes
    extends java.lang.Object
    implements KeyHWAttributes
    This class represents hardware key attributes defined for Elliptic Curve keys.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ECHWKeyAttributes​(byte keyType)
      This method constructs a new ECHWKeyAttributes object.
      ECHWKeyAttributes​(byte keyType, byte keyUsage)
      This method constructs a new ECHWKeyAttributes 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.
      • Methods inherited from class java.lang.Object

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

      • ECHWKeyAttributes

        public ECHWKeyAttributes​(byte keyType)
                          throws java.security.InvalidParameterException
        This method constructs a new ECHWKeyAttributes object.
        Parameters:
        keyType - the hardware key type
        Throws:
        java.security.InvalidParameterException - if the key type or key usage is not valid or not recognized
      • ECHWKeyAttributes

        public ECHWKeyAttributes​(byte keyType,
                                 byte keyUsage)
                          throws java.security.InvalidParameterException
        This method constructs a new ECHWKeyAttributes object.
        Parameters:
        keyType - the hardware key type
        keyUsage - 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 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