- java.lang.Object
-
- com.ibm.crypto.hdwrCCA.provider.RSAKeyHWAttributes
-
- All Implemented Interfaces:
KeyHWAttributes
,java.io.Serializable
- Direct Known Subclasses:
RSAPSSKeyHWAttributes
public 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 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.
-
-
-
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 interfaceKeyHWAttributes
- Returns:
- the key type
-
getKeyUsage
public byte getKeyUsage()
This method returns an int that represents the Key Usage.- Specified by:
getKeyUsage
in interfaceKeyHWAttributes
- Returns:
- the key usage
-
toString
public java.lang.String toString()
This method returns a printable string representation of this class.- Overrides:
toString
in classjava.lang.Object
-
-