Hello,
PITCHUKA SRINIVASA RAO wrote:
> I'm able to read from and write to Samrtcards.Now I want to sign the
> data.But it's getting failed saying that no card service is found or
> ......cardservice can't be instantiated.Actually what card service is
> necessary for signing.I'm using GCR410 reader and GPK8000 series cards
Concerning OCF in general, you have to use a CardService that
implements the "opencard.opt.signature.SignatureCardService" interface.
More details can be found in the "OpenCard Framework 1.2 Programmer's
Guide" (see
http://www.opencard.org/docs/pguide/PGuide.html#HDRSIGNATUREGENERATIONANDVER
)
or in this book: http://www.opencard.org/SCJavaBook/ .
Concerning the GPK8000, the "GPKSignatureService" implements this
interface. From the GPK and Generic CardServices that can be downloaded
at:
http://www.gemplus.fr/developers/technologies/opencard/cardservices/download.html
There is not a lot of docs on how to use them I'm afraid, but they
should
behave as in the OCF guides. Also you can check the source of the tests
(gemplus-gpk-0.2/src/test/GPKTest.java), see the "testPK()" methods that
involves key generation, data signing and verifying).
Hope it'll help.
Cheers,
Christophe.
= "The best way to predict the future is to invent it." --Alan Kay =
--
-------------------------------------------------------------
[EMAIL PROTECTED] - Gemplus Research Lab
Phone: +33 4-42-36-57-83 | Disclaimer: I don't speak for Gemplus
Gemplus doesn't speak for me... it is better that way!
-------------------------------------------------------------
---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/
! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe
! in the body.