|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@TransactionType(value=SUPPORTS) public interface DSAPrivateKey
The DSAPrivateKey
interface is used to sign data using the DSA
algorithm. An implementation of DSAPrivateKey
interface must
also implement the DSAKey
interface methods.
When all four components of the key (X,P,Q,G) are set, the key is initialized and ready for use.
DSAPublicKey
,
KeyBuilder
,
Signature
,
javacardx.crypto.KeyEncryption
Method Summary | |
---|---|
short |
getX(byte[] buffer,
short offset)
Returns the value of the key in plain text. |
void |
setX(byte[] buffer,
short offset,
short length)
Sets the value of the key. |
Methods inherited from interface javacard.security.Key |
---|
clearKey, getSize, getType, getTypeName, isInitialized |
Methods inherited from interface javacard.security.DSAKey |
---|
getG, getP, getQ, setG, setP, setQ |
Method Detail |
---|
void setX(byte[] buffer, short offset, short length) throws CryptoException
Note:
javacardx.crypto.KeyEncryption
interface and the Cipher
object specified via setKeyCipher()
is not null
, the key value is decrypted using the Cipher
object.
buffer
- the input bufferoffset
- the offset into the input buffer at which the modulus value
beginslength
- the length of the modulus
CryptoException
- with the following reason code:
CryptoException.ILLEGAL_VALUE
if the
input key data length is inconsistent with the
implementation or if input data decryption is required and
fails.
short getX(byte[] buffer, short offset)
buffer
- the output bufferoffset
- the offset into the output buffer at which the key value
starts
CryptoException
- with the following reason code:
CryptoException.UNINITIALIZED_KEY
if
the value of the key has not been successfully initialized
since the time the initialized state of the key was set to
false.
Key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |