java.lang.Object
com.ibm.crypto.hdwrCCA.provider.DSAPrivateHWKeySpec
- All Implemented Interfaces:
KeySpec
This class specifies a DSA Hardware key spec to be used with DSAKeyFactory.
This is used to make a representation of the key for import or export, but as
private hardware keys are only valid on the machine they are generated on, they
can not be exported to another machine or imported from another machine. This
is due to the fact that hardware private keys are labels to the actual stored
private key on that machine.
-
Constructor Summary
ConstructorsConstructorDescriptionDSAPrivateHWKeySpec(byte[] keyLabel, DSAParameterSpec parms, byte type) Creates a new instance of this class specifying the key label, the DSA parameters and the storage type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the hardware key attributes associated with the key .Returns the DSA parameters associated with this key.byte[]getLabel()Returns a clone of the key label.
-
Constructor Details
-
DSAPrivateHWKeySpec
Creates a new instance of this class specifying the key label, the DSA parameters and the storage type.- Parameters:
keyLabel- the label associated with the private key. The label must conform to the character restrictions imposed by the platform you are executing on. Please note that it is recommended to use theKeyLabelKeySpecclass to create a key specification using aKeyHWAttributeValues.PKDStype of key.parms- the DSA parameters for this key.type- is the hardware key storage type the only valid value is KeyHWAttributeValues.PKDS.
-
-
Method Details
-
getLabel
public byte[] getLabel()Returns a clone of the key label.- Returns:
- A clone of the key label.
-
getAttributes
Returns the hardware key attributes associated with the key .- Returns:
- the hardware key attributes.
-
getDSAParamSpec
Returns the DSA parameters associated with this key.- Returns:
- the a DSAParameterSpec associate with key.
-