Blackberry JAVA DEVELOPMENT ENVIRONMENT - - CRYPTOGRAPHIC SMART CARD DRIVER - DEVELOPMENT GUIDE Посібник - Сторінка 9
Переглянути онлайн або завантажити pdf Посібник для Програмне забезпечення 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
Task
Retrieve the names of the algorithms that
the smart card supports, for example ("RSA",
"DSA").
CryptoToken
Retrieve a
object that
supports the given algorithm.
See "Code sample: Creating a cryptographic smart card object" on page 15 for more information.
Create a cryptographic session for a cryptographic smart card
Task
Create a cryptographic smart
card session for a
cryptographic smart card.
Close a cryptographic smart
card session.
Retrieve the maximum
number of login attempts.
Retrieve the ID for the smart
card.
Retrieve the remaining
number of login attempts.
Attempt to log in to the
cryptographic session using a
given password string.
Retrieve the certificates from
the smart card.
Validate the input
parameters in the
cryptographic session.
Steps
CryptoSmartCard.getAlgorithms()
>
Implement
CryptoSmartCard.getCryptoToken(String)
>
Implement
Steps
CryptoSmartCardSession
>
Extend the abstract
SmartCardSession.closeImpl()
>
Implement
SmartCardSession.getMaxLoginAttemptsImpl()
>
Implement
SmartCardSession.getSmartCardIDImpl()
>
Implement
SmartCardSession.getRemainingLoginAttemptsImpl()
>
Implement
SmartCardSession.loginImpl(String)
>
Implement
>
Perform one of the following steps:
•
To create a cryptographic smart card driver that is compatible with BlackBerry Device Software Version
CryptoSmartCardSession.getKeyStoreDataArrayImpl()
4.2 or later, implement
RSACryptoToken token = new MyRSACryptoToken();
RSACryptoSystem cryptoSystem = new RSACryptoSystem(token, 1024);
RSAPrivateKey privateKey;
PrivateKey privateKey = new RSAPrivateKey(cryptoSystem, new
MyCryptoTokenData());
•
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,
getKeyStoreDataArrayImp
implement the
PrivateKey privateKey = CryptoSmartCardUtilities2.createPrivateKey(token,
1024, new MyCryptoTokenData());
>
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, in your implementation of the
int modulusLength = cryptoSystem.getModulusLength();
•
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,
in your implementation of the
int modulusLength = (cryptoSystem.getBitLength()/8);
class.
.
.
method as follows:
signDecrypt
method, validate the parameters as follows:
signDecrypt
method, validate the parameters as follows:
1: Using smart cards
.
.
.
.
.
as follows:
5