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 bytegetKeyType()This method returns an int that represents the Key Type.bytegetKeyUsage()This method returns an int that represents the Key Usage.java.lang.StringtoString()This method returns a printable string representation of this class.
-
-
-
Constructor Detail
-
RSAKeyHWAttributes
public RSAKeyHWAttributes(byte keyType, byte keyUsage) throws java.security.InvalidParameterExceptionThis 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:
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
public java.lang.String toString()
This method returns a printable string representation of this class.- Overrides:
toStringin classjava.lang.Object
-
-