Class ECHWKeyAttributes
java.lang.Object
com.ibm.crypto.hdwrCCA.provider.ECHWKeyAttributes
- All Implemented Interfaces:
KeyHWAttributes, Serializable
This class represents hardware key attributes defined
for Elliptic Curve keys.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionECHWKeyAttributes(byte keyType) This method constructs a new ECHWKeyAttributes object.ECHWKeyAttributes(byte keyType, byte keyUsage) This method constructs a new ECHWKeyAttributes object. -
Method Summary
Modifier and TypeMethodDescriptionbyteRetrieves the key type attribute.byteRetrieves the key usage attribute.
-
Constructor Details
-
ECHWKeyAttributes
This method constructs a new ECHWKeyAttributes object.- Parameters:
keyType- the hardware key type- Throws:
InvalidParameterException- if the key type or key usage is not valid or not recognized
-
ECHWKeyAttributes
This method constructs a new ECHWKeyAttributes object.- Parameters:
keyType- the hardware key typekeyUsage- the way that the key will be used- Throws:
InvalidParameterException- if the key type or key usage is not valid or not recognized
-
-
Method Details
-
getKeyType
public byte getKeyType()Retrieves the key type attribute.- Specified by:
getKeyTypein interfaceKeyHWAttributes- Returns:
- a byte representing the key type
-
getKeyUsage
public byte getKeyUsage()Retrieves the key usage attribute.- Specified by:
getKeyUsagein interfaceKeyHWAttributes- Returns:
- a byte representing the key usage
-