SHOW Signed
 

net.rim.device.api.crypto
Class CryptoSmartCardUtilities2

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

public class CryptoSmartCardUtilities2
extends Object

A utility class for creating PrivateKey objects for private keys located on 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.2.0

Method Summary
 Category: Signed static PrivateKey createPrivateKey(SmartCardDSACryptoToken smartCardDSACryptoToken, CryptoTokenCryptoSystemData cryptoTokenSystemData, CryptoTokenPrivateKeyData cryptoTokenPrivateKeyData)
          Deprecated. This method will be deprecated in release 4.2 and above.
 Category: Signed static PrivateKey createPrivateKey(SmartCardRSACryptoToken smartCardRSACryptoToken, int modulusBitLength, CryptoTokenPrivateKeyData cryptoTokenPrivateKeyData)
          Deprecated. This method will be deprecated in release 4.2 and above.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createPrivateKey

public static PrivateKey createPrivateKey(SmartCardDSACryptoToken smartCardDSACryptoToken,
                                          CryptoTokenCryptoSystemData cryptoTokenSystemData,
                                          CryptoTokenPrivateKeyData cryptoTokenPrivateKeyData)
Deprecated. This method will be deprecated in release 4.2 and above.

Constructs a private key which represents a DSA private key located on a smart card.
Parameters:
smartCardDSACryptoToken - The smart card token which will be associated with the crypto system
cryptoTokenSystemData - The data associated with the crypto token.
cryptoTokenPrivateKeyData - The data associated with the crypto token.
Returns:
A PrivateKey object which represents a DSA private key located on a smart card.
Since:
JDE 4.2.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.

createPrivateKey

public static PrivateKey createPrivateKey(SmartCardRSACryptoToken smartCardRSACryptoToken,
                                          int modulusBitLength,
                                          CryptoTokenPrivateKeyData cryptoTokenPrivateKeyData)
                                   throws CryptoTokenException,
                                          UnsupportedCryptoSystemException,
                                          CryptoUnsupportedOperationException
Deprecated. This method will be deprecated in release 4.2 and above.

Constructs a private key which represents an RSA private key located on a smart card.
Parameters:
smartCardRSACryptoToken - The smart card token which will be associated with the crypto system
modulusBitLength - The number of bits a key should be when created under this system.
cryptoTokenPrivateKeyData - The data associated with the crypto token.
Returns:
A PrivateKey object which represents an RSA private key located on a smart card.
Since:
JDE 4.2.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.