com.ibm.crypto.hdwrCCA.provider

Class RSAKeyHWAttributes

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


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

      Constructors 
      Constructor and 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 and 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
� Portions Copyright 1997, 2022 IBM Corporation. All rights reserved. � Portions Copyright 1997, 2022, Oracle and/or its affiliates. All rights reserved.