Create A Cryptographic Token For Private Key Operations - Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Manual

Cryptographic smart card driver
Table of Contents

Advertisement

Cryptographic Smart Card Driver Development Guide
Task
Retrieve random data from
the internal random number
generator of the smart card.
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

Task
Create a token class.
Determine if the token object can perform
authentication for a BlackBerry device
user.
Determine if the token object supports the
CryptoSystem
current
.
6
Steps
CryptoSmartCardSession.getRandomBytesImpl(int maxNumBytes)
>
Implement
Steps
>
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
final class MyRSACryptoToken extends SmartCardRSACryptoToken
>
Create a method that returns true if your token object prompts the BlackBerry device user for
authentication information.
public boolean providesUserAuthentication()
{
return true;
}
>
Create a method that returns a Boolean value that indicates if the token object supports the
CryptoSystem
current
public boolean isSupported(CryptoSystem cryptoSystem, int operation)
{
return (operation == PRIVATE_KEY_OPERATION);
}
class.
.
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Java development environment 4.6.0

Table of Contents