com.acs.smartcard
Class PinVerify

java.lang.Object
  extended by com.acs.smartcard.PinVerify

public class PinVerify
extends java.lang.Object

This class represents PIN_VERIFY structure in PC/SC 2.0 Part 10.

Since:
1.1

Constructor Summary
PinVerify()
          Creates an instance of PinVerify.
PinVerify(int timeOut, int timeOut2, int formatString, int pinBlockString, int pinLengthFormat, int pinMaxExtraDigit, int entryValidationCondition, int numberMessage, int langId, int msgIndex, int teoPrologue0, int teoPrologue1, int teoPrologue2, byte[] data, int dataLength)
          Creates and initializes an instance of PinVerify.
 
Method Summary
 byte[] getData()
          Gets the data.
 int getEntryValidationCondition()
          Gets the entry validation condition.
 int getFormatString()
          Gets the format string.
 int getLangId()
          Gets the language ID.
 int getMsgIndex()
          Gets the message index.
 int getNumberMessage()
          Gets the number message.
 int getPinBlockString()
          Gets the PIN block string.
 int getPinLengthFormat()
          Gets the PIN length format.
 int getPinMaxExtraDigit()
          Gets the PIN max extra digit.
 int getTeoPrologue(int index)
          Gets the T1 prologue.
 int getTimeOut()
          Gets the timeout.
 int getTimeOut2()
          Gets the timeout2.
 void setData(byte[] data, int dataLength)
          Sets the data.
 void setEntryValidationCondition(int entryValidationCondition)
          Sets the entry validation condition.
 void setFormatString(int formatString)
          Sets the format string.
 void setLangId(int langId)
          Sets the language ID.
 void setMsgIndex(int msgIndex)
          Sets the message index.
 void setNumberMessage(int numberMessage)
          Sets the number message.
 void setPinBlockString(int pinBlockString)
          Sets the PIN block string.
 void setPinLengthFormat(int pinLengthFormat)
          Sets the PIN length format.
 void setPinMaxExtraDigit(int pinMaxExtraDigit)
          Sets the PIN max extra digit.
 void setTeoPrologue(int index, int teoPrologue)
          Sets the T1 prologue.
 void setTimeOut(int timeOut)
          Sets the timeout.
 void setTimeOut2(int timeOut2)
          Sets the timeout2.
 byte[] toByteArray()
          Converts the PinVerify to the byte array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PinVerify

public PinVerify()
Creates an instance of PinVerify.


PinVerify

public PinVerify(int timeOut,
                 int timeOut2,
                 int formatString,
                 int pinBlockString,
                 int pinLengthFormat,
                 int pinMaxExtraDigit,
                 int entryValidationCondition,
                 int numberMessage,
                 int langId,
                 int msgIndex,
                 int teoPrologue0,
                 int teoPrologue1,
                 int teoPrologue2,
                 byte[] data,
                 int dataLength)
Creates and initializes an instance of PinVerify.

Parameters:
timeOut - the timeout in seconds (00 means use default timeout).
timeOut2 - the timeout in seconds after first key stroke.
formatString - the formatting options USB_CCID_PIN_FORMAT_xxx.
pinBlockString - the PIN block string. bits 7-4 bit size of PIN length in APDU, bits 3-0 PIN block size in bytes after justification and formatting.
pinLengthFormat - the PIN length format. bits 7-5 RFU, bit 4 set if system units are bytes clear if system units are bits, bits 3-0 PIN length position in system units.
pinMaxExtraDigit - the PIN max extra digit. XXYY, where XX is minimum PIN size in digits, YY is maximum.
entryValidationCondition - the conditions under which PIN entry should be considered complete.
numberMessage - the number of messages to display for PIN verification.
langId - the language for messages.
msgIndex - the message index (should be 00).
teoPrologue0 - T=1 I-block prologue field to use (fill with 00).
teoPrologue1 - T=1 I-block prologue field to use (fill with 00).
teoPrologue2 - T=1 I-block prologue field to use (fill with 00).
data - the data to send to the ICC.
dataLength - the length of data to be sent to the ICC.
Method Detail

getTimeOut

public int getTimeOut()
Gets the timeout.

Returns:
the timeout.

setTimeOut

public void setTimeOut(int timeOut)
Sets the timeout.

Parameters:
timeOut - the timeout.

getTimeOut2

public int getTimeOut2()
Gets the timeout2.

Returns:
the timeout2.

setTimeOut2

public void setTimeOut2(int timeOut2)
Sets the timeout2.

Parameters:
timeOut2 - the timeout2.

getFormatString

public int getFormatString()
Gets the format string.

Returns:
the format string.

setFormatString

public void setFormatString(int formatString)
Sets the format string.

Parameters:
formatString - the format string.

getPinBlockString

public int getPinBlockString()
Gets the PIN block string.

Returns:
the PIN block string.

setPinBlockString

public void setPinBlockString(int pinBlockString)
Sets the PIN block string.

Parameters:
pinBlockString - the PIN block string.

getPinLengthFormat

public int getPinLengthFormat()
Gets the PIN length format.

Returns:
the PIN length format.

setPinLengthFormat

public void setPinLengthFormat(int pinLengthFormat)
Sets the PIN length format.

Parameters:
pinLengthFormat - the PIN length format.

getPinMaxExtraDigit

public int getPinMaxExtraDigit()
Gets the PIN max extra digit.

Returns:
the PIN max extra digit.

setPinMaxExtraDigit

public void setPinMaxExtraDigit(int pinMaxExtraDigit)
Sets the PIN max extra digit.

Parameters:
pinMaxExtraDigit - the PIN max extra digit.

getEntryValidationCondition

public int getEntryValidationCondition()
Gets the entry validation condition.

Returns:
the entry validation condition.

setEntryValidationCondition

public void setEntryValidationCondition(int entryValidationCondition)
Sets the entry validation condition.

Parameters:
entryValidationCondition - the entry validation condition.

getNumberMessage

public int getNumberMessage()
Gets the number message.

Returns:
the number message.

setNumberMessage

public void setNumberMessage(int numberMessage)
Sets the number message.

Parameters:
numberMessage - the number message.

getLangId

public int getLangId()
Gets the language ID.

Returns:
the language ID.

setLangId

public void setLangId(int langId)
Sets the language ID.

Parameters:
langId - the language ID.

getMsgIndex

public int getMsgIndex()
Gets the message index.

Returns:
the message index.

setMsgIndex

public void setMsgIndex(int msgIndex)
Sets the message index.

Parameters:
msgIndex - the message index.

getTeoPrologue

public int getTeoPrologue(int index)
Gets the T1 prologue.

Parameters:
index - the index. The value is from 0 to 2.
Returns:
the T1 prologue.

setTeoPrologue

public void setTeoPrologue(int index,
                           int teoPrologue)
Sets the T1 prologue.

Parameters:
index - the index. The value is from 0 to 2.
teoPrologue - the T1 prologue.

getData

public byte[] getData()
Gets the data.

Returns:
the data.

setData

public void setData(byte[] data,
                    int dataLength)
Sets the data.

Parameters:
data - the data.
dataLength - the data length.

toByteArray

public byte[] toByteArray()
Converts the PinVerify to the byte array.

Returns:
the byte array.


Copyright © 2011-2012 Advanced Card Systems Ltd. All Rights Reserved.