SHOW Signed
 

net.rim.device.api.crypto
Class CryptoSmartCardUtilities

java.lang.Object
  |
  +--net.rim.device.api.crypto.CryptoSmartCardUtilities

public final class CryptoSmartCardUtilities
extends Object

A utility class for accessing cryptographic smart cards

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:
JDE 4.1.0

Method Summary
 Category: Signed static boolean importCertificates(KeyStore importKeyStore, KeyStore trustedKeyStore, String pleaseWaitMessage)
          Import certificates from the smart card that is currently inserted in the smart card reader into the key store specified.
 Category: Signed static boolean isImportCertificatesAvailable()
          Determine if the ability to import certificates is available.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail


importCertificates

public static final boolean importCertificates(KeyStore importKeyStore,
                                               KeyStore trustedKeyStore,
                                               String pleaseWaitMessage)
Import certificates from the smart card that is currently inserted in the smart card reader into the key store specified.
Parameters:
importKeyStore - the key store which the certificates are imported into
trustedKeyStore - the trusted key store which the user can choose to store the imported certificates in if the certificates are not trusted and the user chooses to trust them when prompted.
pleaseWaitMessage - a message to show the user when the please wait dialog is shown (while the certificates are being imported). If null the user will see "Please wait..." in the dialog.
Returns:
true if certificates were added to the importKeyStore or the trustedKeyStore
Since:
JDE 4.1.0
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.

isImportCertificatesAvailable

public static final boolean isImportCertificatesAvailable()
Determine if the ability to import certificates is available. Certificates can be imported if there is at least one smart card driver and one smart card reader driver installed on the system. This method does not guarantee that any certificates actually exist on the smart card.
Returns:
true if the ability to import certificates is available, false otherwise.
Since:
JDE 4.1.0
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.



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.