may be you refer to the last reply i sent i may be i have not fully understood the question.
to load the PIN data into the card you can, of cause, use any suitable APDU command; one of these is the ISO7816-8 command "Change Reference Data", just code:
CLA:00 or 04
INS:24
P1:00 to update existing PIN transmitting both current & new PIN data
or 01 to set initial PIN value
P2:00
Lc:length of data field
data: optionally current PIN data, new PIN reference data, optionally a MAC
Le: not present
the PIN reference data are often formatted according to EMV '96 specification, since ISO7816-8 doesn't explicitly defined it.
Hope it helps.
Sylvain.
A 23:13 29/07/99 -0700, vous avez �crit :
>>>>
Hi there!<<<<
After the superfast reply to my first message sent to this mailinglist, I kind of can not resist to write again... even while this problem has only been bugging me for the past 3-4 hours. However, I think that I won't come any further.
I wrote a nice JAVA Smart Card "purse" with a simple getBalance, debit, credit and authorize/validate function. It is Basic, but it is GREAT to me :-) And yes, everything works perfectly fine! Even the PIN check works OK. [i think].
However, one question... How do I SET the PIN? [ownerPIN]
(I am using the APDUTool that comes with SUN's JavaCard package)
Is it a command that I need to send to CLA 00 or 80?
So, the asnwer I am looking for would be like:
"Just use CLA INS P1 P2 Lc [DATA] Le", where these terms represent the real data of course :-)
Or maybe the asnwer is that you can define the PIN in your application?
[I realise this would be possible without using the OwnerPIN class]
Thank you in advance,
John Brookman
P.S> I am using JC2.1
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.
