Blackberry Java Development Environment 4.6.0 Manuel - Page 10

Parcourez en ligne ou téléchargez le pdf Manuel pour {nom_de_la_catégorie} Blackberry Java Development Environment 4.6.0. Blackberry Java Development Environment 4.6.0 36 pages. 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.
.
.