- java.lang.Object
-
- com.ibm.crypto.hdwrCCA.provider.ECHWKeyAttributes
-
- All Implemented Interfaces:
KeyHWAttributes
,java.io.Serializable
public final class ECHWKeyAttributes extends java.lang.Object implements KeyHWAttributes
This class represents hardware key attributes defined for Elliptic Curve keys.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ECHWKeyAttributes(byte keyType)
This method constructs a new ECHWKeyAttributes object.ECHWKeyAttributes(byte keyType, byte keyUsage)
This method constructs a new ECHWKeyAttributes object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getKeyType()
Retrieves the key type attribute.byte
getKeyUsage()
Retrieves the key usage attribute.
-
-
-
Constructor Detail
-
ECHWKeyAttributes
public ECHWKeyAttributes(byte keyType) throws java.security.InvalidParameterException
This method constructs a new ECHWKeyAttributes object.- Parameters:
keyType
- the hardware key type- Throws:
java.security.InvalidParameterException
- if the key type or key usage is not valid or not recognized
-
ECHWKeyAttributes
public ECHWKeyAttributes(byte keyType, byte keyUsage) throws java.security.InvalidParameterException
This method constructs a new ECHWKeyAttributes object.- Parameters:
keyType
- the hardware key typekeyUsage
- the way that the key will be used- Throws:
java.security.InvalidParameterException
- if the key type or key usage is not valid or not recognized
-
-
Method Detail
-
getKeyType
public byte getKeyType()
Retrieves the key type attribute.- Specified by:
getKeyType
in interfaceKeyHWAttributes
- Returns:
- a byte representing the key type
-
getKeyUsage
public byte getKeyUsage()
Retrieves the key usage attribute.- Specified by:
getKeyUsage
in interfaceKeyHWAttributes
- Returns:
- a byte representing the key usage
-
-