Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Manuale - Pagina 10

Sfoglia online o scarica il pdf Manuale per Software Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE. Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE 36. Cryptographic smart card driver

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.
.
.