net.rim.device.api.crypto
Class CryptoSmartCardUtilities2

java.lang.Object
  extended by 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:
BlackBerry API 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(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.
Throws:
CryptoTokenException
UnsupportedCryptoSystemException
CryptoUnsupportedOperationException
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.2.0

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





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal