java.lang.Object
com.ibm.crypto.hdwrCCA.provider.DSAKeyHWAttributes
- All Implemented Interfaces:
KeyHWAttributes
,Serializable
This class defines the key attributes that are defined for Hardware DSA keys.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDSAKeyHWAttributes
(byte keyType, byte keyUsage) This method constructs a new DSAKeyHWAttributes object. -
Method Summary
Modifier and TypeMethodDescriptionbyte
This method returns a byte that represents the Key Type.byte
This method returns a byte that represents the Key Usage.
-
Constructor Details
-
DSAKeyHWAttributes
This method constructs a new DSAKeyHWAttributes object.- Throws:
InvalidParameterException
- if the key type or usage is invalid i.e. key type is not KeyHWAttributeValues.PKDS or if key usage is not KeyHWAttributeValues.SIGNATURE.
-
-
Method Details
-
getKeyType
public byte getKeyType()This method returns a byte that represents the Key Type. The Key Type determines where this key pair is to be stored.- Specified by:
getKeyType
in interfaceKeyHWAttributes
- Returns:
- the key type
-
getKeyUsage
public byte getKeyUsage()This method returns a byte that represents the Key Usage. The Key Usage determines what the key pair can be used for.- Specified by:
getKeyUsage
in interfaceKeyHWAttributes
- Returns:
- the key usage
-