Hi Nitin,
> I have an applet with two text boxes one to accept the
> userid and one to accept the pin.
>
> I have to read the pin form the text boxes and present
> it to the smartcard for validation.
>
> Now from one of our friends Marc Maman I learn that I
> have to do the following
>
> channel.sendVerifiedAPDU(performCHVCommand, chvctrl,
> getCHVDialog(),
> -1);
[...]
> When I tried some other programs to do this, they
> poped up some dialog box asking for pin. But in my
> case the user has already entered his pin on the
> applet.
>
> So how do I get rid of the default dialog box and
> substitute my applet in its place?
The javadocs for getCHVDialog() say:
Returns the dialog for CHV input. The dialog has to be set
using setCHVDialog.
Returns:
the dialog to use to query a password from the user
See Also:
setCHVDialog(opencard.core.service.CHVDialog)
If you didn't set the dialog using setCHVDialog then I bet
you're just going to get the DefaultCHVDialog.
You can also just pass an instance of a class that implements
the CHVDialog interface directly to sendVerifiedAPDU().
There's an example of a custom CHV dialog in the
demos.stockbroker package available from the OCF website.
-Lewis
Lewis McCarthy [EMAIL PROTECTED] 1-650-694-6813
Software Engineer Critical Path Inc. L.A.S.E.R.
See how thought travels: http://www.criticalpath.net
---
> 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.