4
Cryptographic Smart Card Driver Development Guide
Creating a cryptographic smart card driver
To create a cryptographic smart card driver for BlackBerry Device Software Version 4.1 or later, complete the
following tasks:
1.
Set up the project for the cryptographic smart card driver.
2.
Design a cryptographic smart card driver.
3. Create a cryptographic session for a cryptographic smart card driver.
4. Create a cryptographic token for private key operations.
5. Store the location of the private key file.
Set up the project for the cryptographic smart card driver
Design a cryptographic smart card driver
You must implement all of the following methods:
Task
Steps
Set up the project.
1.
Open the BlackBerry® Integrated Development Environment.
2. Create a new project for the cryptographic smart card driver.
Configure the project.
1.
In the Workspace window, right-click the new project.
2. Select
Properties
.
3. On the
Application
tab, in the
Project type
field, type
Library
.
4. Select the
Auto-run on startup
check box.
5. In the
Startup Tier
field, select the
7(Last; 3rd party apps only)
option.
6. Click
OK
.
Create a
libMain()
method.
>
In your extension of the
CryptoSmartCard
class, implement the
libMain()
method.
Task
Steps
Enable a smart card driver to open a
cryptographic session with a smart card.
>
Implement
SmartCard.openSessionImpl(SmartCardReaderSession)
.
Enable a smart card driver to verify if a smart
card is compatible with a specific Answer To
Reset (ATR) sequence.
>
Implement
SmartCard.checkAnswerToResetImpl(AnswerToReset)
.
Enable a smart card driver to display
settings or properties.
>
Implement
SmartCard.displaySettingsImpl(Object)
.
Enable a smart card driver to indicate
support for display settings.
>
Implement
SmartCard.isDisplaySettingsAvailableImpl(Object)
.
Retrieve the capabilities of a smart card.
>
Implement
SmartCard.getCapabilitiesImpl()
. The capabilites of a smart card
include the protocols the card supports, the baud rate, and the clock adjustment factors.
Retrieve the smart card type.
>
Implement
SmartCard.getLabelImpl()
.
Summary of Contents for JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE
Page 4: ......
Page 6: ......
Page 14: ...10 Cryptographic Smart Card Driver Development Guide...
Page 17: ...13 2 Testing a cryptographic smart card driver...
Page 18: ...14 Cryptographic Smart Card Driver Development Guide...
Page 34: ...30 Cryptographic Smart Card Driver Development Guide...
Page 35: ......
Page 36: ...2007 Research In Motion Limited Published in Canada...