net.rim.device.api.crypto
Class CryptoSmartCard

java.lang.Object
  extended by net.rim.device.api.smartcard.SmartCard
      extended by net.rim.device.api.crypto.CryptoSmartCard
All Implemented Interfaces:
Persistable, Persistable

public abstract class CryptoSmartCard
extends SmartCard
implements Persistable

The CryptoSmartCard class should be extended by all cryptographic smart cards. Sub-classes must explicitly implement the Persistable interface if they are going to be registered as a smart card driver with the SmartCardFactory.

See Also:
Persistable
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 4.1.0

Constructor Summary
Category: Signed protected CryptoSmartCard()
          Creates a new CryptoSmartCard object.
 
Method Summary
Category: Signed abstract  String[] getAlgorithms()
          Returns the names of all the algorithms supported by this smart card, eg "RSA", "DSA".
Category: Signed abstract  CryptoToken getCryptoToken(String algorithm)
          Returns a crypto token that supports the given algorithm.
 
Methods inherited from class net.rim.device.api.smartcard.SmartCard
checkAnswerToReset, checkAnswerToResetImpl, displaySettings, displaySettingsImpl, equals, getCapabilities, getCapabilitiesImpl, getLabel, getLabelImpl, hashCode, isBuiltInReaderSupported, isBuiltInReaderSupportedImpl, isDisplaySettingsAvailable, isDisplaySettingsAvailableImpl, isFingerprintSupportAvailable, isFingerprintSupportAvailableImpl, openSession, openSessionImpl, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 



Constructor Detail

CryptoSmartCard

protected CryptoSmartCard()
Creates a new CryptoSmartCard object.

This is the default constructor.

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 4.1.0


Method Detail

getAlgorithms

public abstract String[] getAlgorithms()
Returns the names of all the algorithms supported by this smart card, eg "RSA", "DSA".

Returns:
A String array that represents the names of the algorithms.
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 4.1.0

getCryptoToken

public abstract CryptoToken getCryptoToken(String algorithm)
                                    throws NoSuchAlgorithmException,
                                           CryptoTokenException
Returns a crypto token that supports the given algorithm.

Parameters:
algorithm - A String representing the name of the algorithm.
Returns:
The crypto token.
Throws:
NoSuchAlgorithmException - Thrown if the specified algorithm is invalid.
CryptoTokenException - Thrown if there is a token related problem.
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 4.1.0





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.