CryptoSmartCard methods you implement to create a driver

Table 1. Methods you must implement for a smart card driver

Method to implement

Description

SmartCard.openSessionImpl(SmartCardReaderSession)

Opens a cryptographic session with a smart card.

SmartCard.checkAnswerToResetImpl(AnswerToReset)

Verifies if a smart card is compatible with a specific Answer To Reset (ATR) sequence.

SmartCard.getCapabilitiesImpl()

Returns an instance of the SmartCardCapabilities class that enumerates the capabilities of the smart card.

SmartCard.displaySettingsImpl(Object)

Enables a smart card driver to display settings or properties.

SmartCard.isDisplaySettingsAvailableImpl(Object)

Enables a smart card driver to indicate support for display settings.

SmartCard.getCapabilitiesImpl()

Retrieves the capabilities of a smart card. The capabilites of a smart card include the protocols the card supports, the baud rate, and the clock adjustment factors.

SmartCard.getLabelImpl()

Retrieves the smart card type.

CryptoSmartCard.getAlgorithms()

Retrieves the names of the algorithms that the smart card supports, for example (“RSA”, “DSA”).

CryptoSmartCard.getCryptoToken(String)

Retrieves a CryptoToken object that supports the given algorithm.

SmartCard.getLabelImpl()

Returns a label associated with the kind of smart card.


Was this information helpful? Send us your comments.