Package opencard.core.terminal
Class CHVControl
- java.lang.Object
-
- opencard.core.terminal.CHVControl
-
public class CHVControl extends java.lang.Object
Determine the characteristics of a card holder verification.- Version:
- $Id: CHVControl.java,v 1.1.1.1 1999/10/05 15:34:31 damke Exp $
- Author:
- Peter Trommler (trp@zurich.ibm.com), Thomas Schaeck (schaeck@de.ibm.com), Stephan Breideneich (sbreiden@de.ibm.com)
-
-
Constructor Summary
Constructors Constructor Description CHVControl(java.lang.String prompt, int chvNumber, java.lang.String passwordEncoding, int passwordOffset, CardTerminalIOControl ioControl)
The constructor setting all fields.CHVControl(java.lang.String prompt, java.lang.String applicationID, java.lang.String passwordEncoding, int passwordOffset, CardTerminalIOControl ioControl)
The constructor setting all fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
applicationID()
Get the application ID string.int
chvNumber()
Get the chvNumber for which a CHV is required.CardTerminalIOControl
ioControl()
Get the I/O control parameters.java.lang.String
passwordEncoding()
Get the password encoding.int
passwordOffset()
Offset of the password in the body of the command APDUjava.lang.String
prompt()
-
-
-
Constructor Detail
-
CHVControl
public CHVControl(java.lang.String prompt, java.lang.String applicationID, java.lang.String passwordEncoding, int passwordOffset, CardTerminalIOControl ioControl)
The constructor setting all fields.- Parameters:
prompt
- a string to be displayed to ask the user to enter his passwordapplicationID
- an identification to tell the user which application needs CHVpasswordEncoding
- identification of the encoder to convert the password String to a byte arraypasswordOffset
- offset of the password within the body of the verify APDUioControl
- parameters for keyboard input
-
CHVControl
public CHVControl(java.lang.String prompt, int chvNumber, java.lang.String passwordEncoding, int passwordOffset, CardTerminalIOControl ioControl)
The constructor setting all fields.- Parameters:
prompt
- a string to be displayed to ask the user to enter his passwordchvNumber
- number of CHV to be requested from the userpasswordEncoding
- identification of the encoder to convert the password String to a byte arraypasswordOffset
- offset of the password within the body of the verify APDUioControl
- parameters for keyboard input
-
-
Method Detail
-
prompt
public java.lang.String prompt()
- Returns:
- the prompt string
-
applicationID
public java.lang.String applicationID()
Get the application ID string.The application ID gives the user information on the application he is expected to give card holder verification for.
- Returns:
- the applicateion id string.
-
chvNumber
public int chvNumber()
Get the chvNumber for which a CHV is required.- Returns:
- CHV number
-
passwordEncoding
public java.lang.String passwordEncoding()
Get the password encoding.The password encoding defines the method to obtain the byte array from the String read from the user. The default is to use the default encoding of the machine.
- Returns:
- password encoding information
-
passwordOffset
public int passwordOffset()
Offset of the password in the body of the command APDU- Returns:
- the offset
-
ioControl
public CardTerminalIOControl ioControl()
Get the I/O control parameters.- Returns:
- a reference to a CardTerminalIOControl instance
-
-