6
Cryptographic Smart Card Driver Development Guide
See “Code sample: Creating a cryptographic session for a cryptographic smart card driver” on page 18 for more
information.
Create a cryptographic token for private key operations
Retrieve random data from
the internal random number
generator of the smart card.
>
Implement
CryptoSmartCardSession.getRandomBytesImpl(int maxNumBytes)
.
Task
Steps
Create a token class.
>
Perform one of the following steps:
•
To create a cryptographic smart card driver that is compatible with BlackBerry Device
Software Version 4.2 or later, create a class that extends an RSA®, DSA, or ECC token class.
For example:
final class MyRSACryptoToken extends RSACryptoToken implements
Persistable
•
To create a cryptographic smart card driver that is compatible with BlackBerry Device
Software Version 4.1 and Version 4.2 or later, and to include the cryptographic smart card
driver in two-factor authentication, create a class that extends the
SmartCardRSACryptoToken
class.
final class MyRSACryptoToken extends SmartCardRSACryptoToken
Determine if the token object can perform
authentication for a BlackBerry device
user.
>
Create a method that returns true if your token object prompts the BlackBerry device user for
authentication information.
public boolean providesUserAuthentication()
{
return true;
}
Determine if the token object supports the
current
CryptoSystem
.
>
Create a method that returns a Boolean value that indicates if the token object supports the
current
CryptoSystem
.
public boolean isSupported(CryptoSystem cryptoSystem, int operation)
{
return (operation == PRIVATE_KEY_OPERATION);
}
Task
Steps
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...