|
Java Card 2.1 Platform Final Revision 1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
The RSAPublicKey is used to verify signatures on signed data using the RSA algorithm.
It may also used by the javacardx.crypto.Cipher class to encrypt/decrypt messages.
When both the modulus and exponent of the key are set, the key is initialized and ready for use.
RSAPrivateKey,
RSAPrivateCrtKey,
KeyBuilder,
Signature,
Cipher,
KeyEncryption| Method Summary | |
short |
getExponent(byte[] buffer,
short offset)
Returns the private exponent value of the key in plain text. |
short |
getModulus(byte[] buffer,
short offset)
Returns the modulus value of the key in plain text. |
void |
setExponent(byte[] buffer,
short offset,
short length)
Sets the public exponent value of the key. |
void |
setModulus(byte[] buffer,
short offset,
short length)
Sets the modulus value of the key. |
| Methods inherited from interface javacard.security.Key |
clearKey,
getSize,
getType,
isInitialized |
| Method Detail |
public void setModulus(byte[] buffer,
short offset,
short length)
throws CryptoException
buffer - the input bufferoffset - the offset into the input buffer at which the modulus value beginslength - the byte length of the modulusCryptoException.ILLEGAL_VALUE if the input modulus data length is inconsistent
with the implementation or if input data decryption is required and fails.
Note:
javacardx.crypto.KeyEncryption
interface and the Cipher object specified via setKeyCipher()
is not null, the modulus value is decrypted using the Cipher object.
public void setExponent(byte[] buffer,
short offset,
short length)
throws CryptoException
buffer - the input bufferoffset - the offset into the input buffer at which the exponent value beginslength - the byte length of the exponentCryptoException.ILLEGAL_VALUE if the input exponent data length is inconsistent
with the implementation or if input data decryption is required and fails.
Note:
javacardx.crypto.KeyEncryption
interface and the Cipher object specified via setKeyCipher()
is not null, the exponent value is decrypted using the Cipher object.
public short getModulus(byte[] buffer,
short offset)
buffer - the output bufferoffset - the offset into the input buffer at which the modulus value starts
public short getExponent(byte[] buffer,
short offset)
buffer - the output bufferoffset - the offset into the output buffer at which the exponent value begins
|
Submit a bug or feature Java and Java Card are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||