net.rim.device.api.crypto
Interface AsymmetricCryptoToken

All Superinterfaces:
CryptoToken, Persistable
All Known Implementing Classes:
DHCryptoToken, DSACryptoToken, ECCryptoToken, KEACryptoToken, RSACryptoToken, SmartCardDSACryptoToken, SmartCardRSACryptoToken

public interface AsymmetricCryptoToken
extends CryptoToken

Defines a crypto token for asymmetric key algorithms.

Crypto tokens are used to store and distribute crypotgraphic information.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

Field Summary
Category: Signed static int KEY_GENERATION
          Use this value with the isSupported() method to query whether generating keys of a particular bit length is supported by this CryptoToken.
Category: Signed static int PRIVATE_KEY_OPERATION
          Use this value with the isSupported() method to query whether performing a private key operation with keys of a particular bit length is supported by this CryptoToken.
Category: Signed static int PUBLIC_KEY_OPERATION
          Use this value with the isSupported() method to query whether performing a public key operation with keys of a particular bit length is supported by this CryptoToken.
 
Method Summary
Category: Signed  boolean isSupported(CryptoSystem cryptoSystem, int operation)
          Indicates whether the chosen operation is supported by this CryptoToken using the provided CryptoSytem.
 
Methods inherited from interface net.rim.device.api.crypto.CryptoToken
getAlgorithm, providesUserAuthentication
 



Field Detail

KEY_GENERATION

static final int KEY_GENERATION
Use this value with the isSupported() method to query whether generating keys of a particular bit length is supported by this CryptoToken.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

PUBLIC_KEY_OPERATION

static final int PUBLIC_KEY_OPERATION
Use this value with the isSupported() method to query whether performing a public key operation with keys of a particular bit length is supported by this CryptoToken.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0

PRIVATE_KEY_OPERATION

static final int PRIVATE_KEY_OPERATION
Use this value with the isSupported() method to query whether performing a private key operation with keys of a particular bit length is supported by this CryptoToken.

See Also:
Constant Field Values
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0


Method Detail

isSupported

boolean isSupported(CryptoSystem cryptoSystem,
                    int operation)
Indicates whether the chosen operation is supported by this CryptoToken using the provided CryptoSytem.

Parameters:
cryptoSystem - The CryptoSystem to check against.
operation - An integer, either KEY_GENERATION, PUBLIC_KEY_OPERATION, PRIVATE_KEY_OPERATION, or some other value specific to the cryptosystem that indicates the operation to be checked.
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Since:
BlackBerry API 3.6.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal