Forum posts for reader

Blackberry smartcard reader example

I am writing an app for BlackBerry that utilizes a BlackBerry smartcard reader. There is not much documentation on the subject, so I'd really like if someone could give me starting examples.

Basically, there is one RSA private key on the card plus a certificate (for paired public key). I would like to be able to encrypt/decrypt data and also sign it as well. The final goal would be to establish an mutual-authenticated SSL connection using client certificate contained on the smartcard.

Here is the code I managed to come up with so far:

SmartCardReader btReader = null;
SmartCardReader[] readers = SmartCardReaderFactory.getInstalledReaders();
for (int i = 0; i < readers.length; i++) {
SmartCardReader reader = readers[i];
if (reader.getType().equalsIgnoreCase('bluetooth')) {
btReader = reader;
break;
}
}

SmartCardReaderSession readerSession = reader.openSession();
CryptoSmartCard card = (CryptoSmartCard) readerSession.getSmartCard();
RSACryptoToken token = (RSACryptoToken) card.getCryptoToken('RSA');


This token looks promising - has some nice methods, but with 'cryptic' arguments. What to do next?

View complete forum thread with replies

Other posts related to reader

See Related Forum Messages: Follow the Links Below to View Complete Thread

fingerprint reader or thumb reader
adobe reader and acrobat reader [closed]
reader vs buffered reader
CSV parser/reader for C#? [closed]
The &ldquo;reader&rdquo; monad
Fingerprint Reader
Blackberry smartcard reader example
Casting to a reader or creating a new reader
Fingerprint Reader
PDF Reader
fingerprint reader [closed]
InputStream reader
Buffered Reader
geotools reader
File reader encapsulation in a table reader

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.