CryptoSmartCardSession methods you implement to create a driver

Table 1. Methods that you must implement for any smart card driver.

CryptoSmartCardSession methods

Description

SmartCardSession.closeImpl()

Closes a cryptographic smart card session.

SmartCardSession.getMaxLoginAttemptsImpl()

Retrieves the maximum number of login attempts.

SmartCardSession.getRemainingLoginAttemptsImpl()

Retrieves the remaining number of login attempts.

SmartCardSession.getSmartCardIDImpl()

Retrieves the ID for the smart card.

SmartCardSession.loginImpl(String)

Attempts to log in to the cryptographic session using a given password string.

CryptoSmartCardSession.getKeyStoreDataArrayImpl()

Retrieves certificates from the smart card.

CryptoSmartCardSession.getRandomBytesImpl(int maxNumBytes)

Retrieves random data from the internal random number generator of the smart card.

Table 2. Additional methods that you must implement for smart card drivers that support retrieving fingerprint data from smart cards.

Method to implement

Description

CryptoSmartCardSession.getFingerprintsImpl(int context)

Extend this method to provide support for extracting fingerprint sample data from a smart card. The data must be returned in a FingerprintBiometricData[]. The context parameter indicates why the fingerprints are being requested. In BlackBerry Java Development Environment 5.0, only FINGERPRINT_CONTEXT_AUTHENTICATION is used.


Was this information helpful? Send us your comments.