|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopencard.core.service.CardHolderVerificationGUI
public final class CardHolderVerificationGUI
The system user interaction handler.
This class provides a trusted path to the OpenCard Framework.
Constructor Summary | |
---|---|
protected |
CardHolderVerificationGUI()
|
Method Summary | |
---|---|
protected void |
clearDisplay()
Clear the display. |
protected void |
display(int num)
Display a message. |
protected java.lang.String |
keyboardInput(CardTerminalIOControl ioControl,
CHVDialog customCHVDialog)
Return keyboard (i.e., keyboard, PIN pad, etc.) input. |
protected java.lang.String |
promptUser(int chvNumber,
CardTerminalIOControl ioControl,
CHVDialog customCHVDialog)
Prompt the user for a password, etc. |
ResponseAPDU |
sendVerifiedAPDU(SlotChannel slotchan,
CommandAPDU command,
CHVControl control,
CHVDialog dialog)
Queries for a PIN and sends it to the smartcard. |
ResponseAPDU |
sendVerifiedAPDU(SlotChannel slotchan,
CommandAPDU command,
CHVControl control,
CHVDialog dialog,
int timeout)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CardHolderVerificationGUI()
Method Detail |
---|
protected void clearDisplay()
protected void display(int num)
message
- The String to display.protected java.lang.String keyboardInput(CardTerminalIOControl ioControl, CHVDialog customCHVDialog)
ioControl
- A CardTerminalIOControl object that specifies
how the user input should look like.
protected java.lang.String promptUser(int chvNumber, CardTerminalIOControl ioControl, CHVDialog customCHVDialog)
prompt
- The message to be displayed.ioControl
- A CardTerminalIOControl object that specifies
how the user input should look like.
public ResponseAPDU sendVerifiedAPDU(SlotChannel slotchan, CommandAPDU command, CHVControl control, CHVDialog dialog, int timeout) throws CardTerminalException, CardServiceInvalidCredentialException
CardTerminalException
CardServiceInvalidCredentialException
public ResponseAPDU sendVerifiedAPDU(SlotChannel slotchan, CommandAPDU command, CHVControl control, CHVDialog dialog) throws CardTerminalException, CardServiceInvalidCredentialException
slotchan
- the physical channel to the smartcardcommand
- the APDU to send, password still missingcontrol
- the parameters needed to query and fill in the password,
for example the message for querying, and an offset in
the command APDUdialog
- a dialog provided by the application,
or null to use a default dialog
CardTerminalException
- An error occurred while sending the command.
CardServiceInvalidCredentialException
- The user entered an empty password, or cancelled the
password input. No command has been sent to the smartcard.CardChannel.sendVerifiedAPDU(opencard.core.terminal.CommandAPDU, opencard.core.terminal.CHVControl, opencard.core.service.CHVDialog, int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |