|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.rim.device.api.crypto.RSACryptoToken
|
+--net.rim.device.api.crypto.SmartCardRSACryptoToken
An interface for RSA cryptographic smart cards to implement. The RIM Crypto API will call this interface when a RSA operation is to be performed on a RSA enabled cryptographic smart card.
RSACryptoToken| Field Summary |
| Fields inherited from interface net.rim.device.api.crypto.AsymmetricCryptoToken |
KEY_GENERATION, PRIVATE_KEY_OPERATION, PUBLIC_KEY_OPERATION |
| Constructor Summary | ||
|
protected |
SmartCardRSACryptoToken()
Deprecated. Creates a new SmartCardRSACryptoToken object. |
| Method Summary | ||
|
void |
decryptRSA(RSACryptoSystem cryptoSystem,
CryptoTokenPrivateKeyData privateKeyData,
byte[] input,
int inputOffset,
byte[] output,
int outputOffset)
Deprecated. |
|
protected abstract void |
decryptRSASmartCardImpl(CryptoSystem cryptoSystem,
CryptoTokenPrivateKeyData privateKeyData,
byte[] input,
int inputOffset,
byte[] output,
int outputOffset)
Deprecated. Performs a raw RSA decryption operation. |
|
boolean |
isSupportedDecryptRSA(RSACryptoSystem cryptoSystem,
CryptoTokenPrivateKeyData privateKeyData)
Deprecated. |
|
protected abstract boolean |
isSupportedDecryptRSASmartCardImpl(CryptoSystem cryptoSystem,
CryptoTokenPrivateKeyData privateKeyData)
Deprecated. Returns a boolean that determines if the given key and crypto system support RSA encryption. |
|
void |
signRSA(RSACryptoSystem cryptoSystem,
CryptoTokenPrivateKeyData privateKeyData,
byte[] input,
int inputOffset,
byte[] output,
int outputOffset)
Deprecated. |
|
protected abstract void |
signRSASmartCardImpl(CryptoSystem cryptoSystem,
CryptoTokenPrivateKeyData privateKeyData,
byte[] input,
int inputOffset,
byte[] output,
int outputOffset)
Deprecated. Performs a raw RSA signature operation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected SmartCardRSACryptoToken()
SmartCardRSACryptoToken object.
This constructor is not used.
| Method Detail |
public boolean isSupportedDecryptRSA(RSACryptoSystem cryptoSystem, CryptoTokenPrivateKeyData privateKeyData) throws CryptoTokenException
RSACryptoTokenisSupportedDecryptRSA in class RSACryptoTokenprotected abstract boolean isSupportedDecryptRSASmartCardImpl(CryptoSystem cryptoSystem, CryptoTokenPrivateKeyData privateKeyData) throws CryptoTokenException
cryptoSystem - The crypto system to check.privateKeyData - The private key data.CryptoTokenException - Thrown if an error occurs with a crypto
token or the crypto token is invalid.RSACryptoToken.isSupportedDecryptRSA(net.rim.device.api.crypto.RSACryptoSystem, net.rim.device.api.crypto.CryptoTokenPrivateKeyData)public void decryptRSA(RSACryptoSystem cryptoSystem, CryptoTokenPrivateKeyData privateKeyData, byte[] input, int inputOffset, byte[] output, int outputOffset) throws CryptoTokenException
RSACryptoTokendecryptRSA in class RSACryptoTokenprotected abstract void decryptRSASmartCardImpl(CryptoSystem cryptoSystem, CryptoTokenPrivateKeyData privateKeyData, byte[] input, int inputOffset, byte[] output, int outputOffset) throws CryptoTokenException
cryptoSystem - The crypto system associated with the token.privateKeyData - The RSA private key.input - The input data.inputOffset - The offset in the input data to begin reading from.output - The buffer for the output data.outputOffset - The offset in the output buffer to begin writing at.CryptoTokenException - Thrown if an error occurs with a crypto
token or the crypto token is invalid.RSACryptoToken.decryptRSA(net.rim.device.api.crypto.RSACryptoSystem, net.rim.device.api.crypto.CryptoTokenPrivateKeyData, byte[], int, byte[], int)public void signRSA(RSACryptoSystem cryptoSystem, CryptoTokenPrivateKeyData privateKeyData, byte[] input, int inputOffset, byte[] output, int outputOffset) throws CryptoTokenException, CryptoUnsupportedOperationException
RSACryptoTokensignRSA in class RSACryptoTokenprotected abstract void signRSASmartCardImpl(CryptoSystem cryptoSystem, CryptoTokenPrivateKeyData privateKeyData, byte[] input, int inputOffset, byte[] output, int outputOffset) throws CryptoTokenException, CryptoUnsupportedOperationException
cryptoSystem - The crypto system associated with the token.privateKeyData - The RSA private key.input - The input data.inputOffset - The offset in the input data to begin reading from.output - The buffer for the output data.outputOffset - The offset in the output buffer to begin writing at.CryptoTokenException - Thrown if an error occurs with the crypto
token or the crypto token is invalid.CryptoUnsupportedOperationException - Thrown if a call is made to
an unsupported operation.RSACryptoToken.signRSA(net.rim.device.api.crypto.RSACryptoSystem, net.rim.device.api.crypto.CryptoTokenPrivateKeyData, byte[], int, byte[], int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2006 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.