Hello,

I own a class 3 card terminal and want to verify the PIN with it, i.e. via the keypad of the card terminal and not with the keyboard of my PC and transmit it.

Is there a special APDU format?

I tried:

byte apdu[] = {(byte)0x00, (byte)0x20, (byte)0x00, (byte)0x82}

(0x82 for parameter P2 means my user PIN in my applet)

and sent it by:

commandAPDU commandAPDU = new CommandAPDU(apdu);
getCardChannel().sendCommandAPDU(commandAPDU);

Then I tried to send this command with sendTerminalCommand() of the PcSc terminal implementation:

CardTerminalRegistry ctr = CardTerminalRegistry.getRegistry();
Enumeration terminals = ctr.getCardTerminals();
Pcsc10CardTerminal terminal = (Pcsc10CardTerminal) terminals.nextElement(); byte resp[] = terminal.sendTerminalCommand(command);


but it didn't work.

Thanks, Karsten


---
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.




Reply via email to