Class RSAKeyHWAttributes

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte getKeyType()
      This method returns an int that represents the Key Type.
      byte getKeyUsage()
      This method returns an int that represents the Key Usage.
      java.lang.String toString()
      This method returns a printable string representation of this class.
      • Methods inherited from class java.lang.Object

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

      • RSAKeyHWAttributes

        public RSAKeyHWAttributes​(byte keyType,
                                  byte keyUsage)
                           throws java.security.InvalidParameterException
        This method constructs a new RSAKeyHWAttributes object.
        Throws:
        java.security.InvalidParameterException - if the key type or usage is invalid i.e. key type is not KeyHWAttributeValues.PKDS, KeyHWAttributeValues.CLEAR or KeyHWAttributeValues.RETAIN or if key usage is not KeyHWAttributeValues.SIGNATURE or KeyHWAttributeValues.KEYMANAGEMENT.
    • Method Detail

      • getKeyType

        public byte getKeyType()
        This method returns an int that represents the Key Type.
        Specified by:
        getKeyType in interface KeyHWAttributes
        Returns:
        the key type
      • getKeyUsage

        public byte getKeyUsage()
        This method returns an int that represents the Key Usage.
        Specified by:
        getKeyUsage in interface KeyHWAttributes
        Returns:
        the key usage
      • toString

        public java.lang.String toString()
        This method returns a printable string representation of this class.
        Overrides:
        toString in class java.lang.Object