SHOW Signed SHOW CryptoExtensionAPI
 

net.rim.device.api.crypto
Class CryptoSmartCard

java.lang.Object
  |
  +--net.rim.device.api.smartcard.SmartCard
        |
        +--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.

Category:
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.
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:
JDE 4.1.0
See Also:
Persistable

Constructor Summary
 Category: CryptoExtensionAPI Category: Signed protected CryptoSmartCard()
          Creates a new CryptoSmartCard object.
 
Method Summary
 Category: CryptoExtensionAPI Category: Signed abstract  String[] getAlgorithms()
          Returns the names of all the algorithms supported by this smart card, eg "RSA", "DSA".
 Category: CryptoExtensionAPI 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, isDisplaySettingsAvailable, isDisplaySettingsAvailableImpl, 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.

Since:
JDE 4.1.0
Category:
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.
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.
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.
Since:
JDE 4.1.0
Category:
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.
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.

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.
Since:
JDE 4.1.0
Category:
CryptoExtensionAPI: This element is part of the Crypto Extension API. These APIs are intended for parties interested in extending the security provider frameworks, such as integrating a new security medium.
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.



Copyright 1999-2009 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.