java.lang.Object
com.ibm.crypto.hdwrCCA.provider.RSAKeyHWAttributes
- All Implemented Interfaces:
KeyHWAttributes,Serializable
- Direct Known Subclasses:
RSAPSSKeyHWAttributes
This class defines the key attributes that are defined for Hardware RSA keys.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRSAKeyHWAttributes(byte keyType, byte keyUsage) This method constructs a new RSAKeyHWAttributes object. -
Method Summary
Modifier and TypeMethodDescriptionbyteThis method returns an int that represents the Key Type.byteThis method returns an int that represents the Key Usage.toString()This method returns a printable string representation of this class.
-
Constructor Details
-
RSAKeyHWAttributes
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:
getKeyTypein interfaceKeyHWAttributes- Returns:
- the key type
-
getKeyUsage
public byte getKeyUsage()This method returns an int that represents the Key Usage.- Specified by:
getKeyUsagein interfaceKeyHWAttributes- Returns:
- the key usage
-
toString
This method returns a printable string representation of this class.
-