net.rim.device.api.crypto
Interface CryptoToken

All Superinterfaces:
Persistable
All Known Subinterfaces:
AsymmetricCryptoToken, SymmetricCryptoToken
All Known Implementing Classes:
AESCryptoToken, CAST128CryptoToken, DESCryptoToken, DHCryptoToken, DSACryptoToken, ECCryptoToken, HMACCryptoToken, KEACryptoToken, RC2CryptoToken, RC5CryptoToken, RSACryptoToken, SkipjackCryptoToken, SmartCardDSACryptoToken, SmartCardRSACryptoToken, TripleDESCryptoToken

public interface CryptoToken
extends Persistable

Defines a crypto token.

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

Method Summary
Category: Signed  String getAlgorithm()
          Returns the algorithm supported by this token, eg "EC" or "RSA".
Category: Signed  boolean providesUserAuthentication()
          Returns true if the token provides its own user authentication checks, eg a smartcard will prompt for a password before allowing access to the keys.
 



Method Detail

getAlgorithm

String getAlgorithm()
Returns the algorithm supported by this token, eg "EC" or "RSA".

Returns:
A String that represents the name of the algorithm.
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

providesUserAuthentication

boolean providesUserAuthentication()
Returns true if the token provides its own user authentication checks, eg a smartcard will prompt for a password before allowing access to the keys.

Returns:
true if the user will be authenticated by the token itself.
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