Drivers for smart cards and smart card readers

BlackBerry® devices include the drivers that support the use of certain smart cards. The supported smart card readers require associated drivers. If you want to use a supported smart card on a supported reader, you do not have to write a driver for the smart card or a driver for the smart card reader. In the other potential scenarios of smart card and smart card reader usage you must create and register the drivers.

Scenario Implementation requirements
supported reader and unsupported card Create and register a driver for the smart card by implementing the abstract SmartCard or CryptoSmartCard class and the abstract SmartCardSession class.
unsupported reader and supported card Create and register a driver for the smart card reader by implementing the abstract SmartCardReader class and the abstract SmartCardReaderSession class.
unsupported reader and unsupported card Create and register a driver for the smart card by implementing the abstract SmartCard or CryptoSmartCard class and the abstract SmartCardSession class. Also, create and register a driver for the smart card reader by implementing the abstract SmartCardReader class and the abstract SmartCardReaderSession class.

To create drivers that interact with smart cards and the BlackBerry® Smart Card Readeryou can use the net.rim.device.api.smartcard package and the net.rim.device.api.crypto packages in the Smart Card API that is provided in BlackBerry® Java® Development Environment 4.1.

A driver for a cryptographic smart card that implements the Smart Card API can work with the S/MIME Support Package for BlackBerry® smartphones on a BlackBerry device with S/MIME support. A driver for a cryptographic smart card can perform signing private key operations on the smart card such as signing and decrypting messages. A driver for a cryptographic smart card does not require the S/MIME Support Packagefor BlackBerry smartphones to be able to import certificates from the smart card, or to provide two-factor authentication for a BlackBerry device. For more information on S/MIME, see the BlackBerry with the S/MIME Support Package.

The Smart Card API that is provided in BlackBerry JDE 4.2 or later contains some deprecated elements. The deprecated elements provide backward compatibility if you create a driver for a cryptographic smart card for BlackBerry devices with BlackBerry® Device Software 4.1.x. If you want to create a driver for a cryptographic smart card for BlackBerry devices with BlackBerry Device Software version 4.1.x or version 4.2 or later, you can use the deprecated elements to avoid creating two versions of the driver.

If you want to create a driver for a cryptographic smart card for BlackBerry devices with BlackBerry Device Software 4.2 or later, use the nondeprecated API elements in the Smart Card API.


Was this information helpful? Send us your comments.