net.rim.device.api.crypto
Class CryptoSmartCardUtilities

java.lang.Object
  extended by 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:
BlackBerry API 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

isImportCertificatesAvailable

public static final boolean isImportCertificatesAvailable()
Determine if the ability to import certificates is available.

Returns:
true if the ability to import certificates is available, false otherwise.
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

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
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.