Class RSAKeyHWAttributes

java.lang.Object
com.ibm.crypto.hdwrCCA.provider.RSAKeyHWAttributes
All Implemented Interfaces:
KeyHWAttributes, Serializable
Direct Known Subclasses:
RSAPSSKeyHWAttributes

public class RSAKeyHWAttributes extends Object implements KeyHWAttributes
This class defines the key attributes that are defined for Hardware RSA keys.
See Also:
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    byte
    This method returns an int that represents the Key Type.
    byte
    This method returns an int that represents the Key Usage.
    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 Details

    • RSAKeyHWAttributes

      public RSAKeyHWAttributes(byte keyType, byte keyUsage) throws InvalidParameterException
      This method constructs a new RSAKeyHWAttributes object.
      Throws:
      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 Details

    • 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 String toString()
      This method returns a printable string representation of this class.
      Overrides:
      toString in class Object