Hi!
I have an Opencard Democard (MFC4.0) and I have some problems using the
keys on the card.
The keys reside in the directory :3F00:C110 (as far as I know) so I
wrote my code for accessing the keys like this:

FileAccessCardService facs = (FileAccessCardService)
                            sc.getCardService(FileAccessCardService.class, true);
                        CardFile root = new CardFile(facs);
                        CardFile file = new CardFile(root, ":c110");

                        PrivateKeyFile keyRef = new PrivateKeyFile(file.getPath(),0);

The methods getAlgorithm, getFormat and getEncoded all return null (for
"keyRef") so I guess I've not succeeded in finding the key. The files
:3F00:C110:FE00 (secret key) and :3F00:C110:FE80 (public key) are keys
which exist on the card. Are those the keys I'm trying to access in the
code above, and/or what have I done wrong. 

regards
/Martin Sigbj�rn
Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for
access to documentation, code, presentations, and OCF announcements.
-----------------------------------------------------------------------------
To unsubscribe from the OCF Mailing list, send a mail to
"[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the
message.

Reply via email to