Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cardman 2020, which API should I use ?



--On May 6, 2006 7:11:00 PM +0200 "Tomasz K. Kaczmarek" <email@hidden> wrote:

Hi !

I'm developing a digital signing app. I decided to use the Cardman 2020
smart card reader with my app. I've got my Cardman 2020 already running
(I got the proper driver downloaded from manufacturer's site and I set up
pcscd demon, the pcsctest returned successful). My question is about
which API will be the best for my solution ? Should I use the PCSC
framework to communicate with the hardware ? Where I could find some
examples or documentation on PCSC framework ?

It depends on what role you want that card to play in the system.

If you have a vertical application (you implement everything yourself and don't care what anyone else does), then just using the PCSC layer is fine. Given what you have, that's probably fastest. It means your card won't work with the "higher level" APIs.

If you want your card to be a "first class citizen" of Mac OS X, you need a Tokend driver application for it. That's the plugin (actually an application of sorts) that mediates between the keychain layer and smart cards. If you do this, your card will show up in the keychain list, and Mail/Safari/VPN/etc. will see the keys and certificates on it and be able to use them as needed. (At that point, your own Apps could still use PCSC to use the card, but it would make more sense, if you can, to use the Keychain APIs to properly share the card with the other applications.)

A Tokend is a user-space application (usually written in C++, I'm afraid :-) that implements an access API for the card, using PCSC calls. So you won't get out of doing *some* PCSC coding either way.

Cheers
 -- perry
---------------------------------------------------------------------------
Perry The Cynic                                             email@hidden
To a blind optimist, an optimistic realist must seem like an Accursed Cynic.
---------------------------------------------------------------------------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden
References: 
 >Cardman 2020, which API should I use ? (From: "Tomasz K. Kaczmarek" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.