com.acs.smartcard
Class PinModify

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

public class PinModify
extends java.lang.Object

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

Since:
1.1

Constructor Summary
PinModify()
          Creates an instance of PinModify.
PinModify(int timeOut, int timeOut2, int formatString, int pinBlockString, int pinLengthFormat, int insertionOffsetOld, int insertionOffsetNew, int pinMaxExtraDigit, int confirmPin, int entryValidationCondition, int numberMessage, int langId, int msgIndex1, int msgIndex2, int msgIndex3, int teoPrologue0, int teoPrologue1, int teoPrologue2, byte[] data, int dataLength)
          Creates and initializes an instance of PinModify.
 
Method Summary
 int getConfirmPin()
          Gets the confirm PIN.
 byte[] getData()
          Gets the data.
 int getEntryValidationCondition()
          Gets the entry validation condition.
 int getFormatString()
          Gets the format string.
 int getInsertionOffsetNew()
          Gets the new insertion offset.
 int getInsertionOffsetOld()
          Gets the old insertion offset.
 int getLangId()
          Gets the language ID.
 int getMsgIndex1()
          Gets the message index 1.
 int getMsgIndex2()
          Gets the message index 2.
 int getMsgIndex3()
          Gets the message index 3.
 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 setConfirmPin(int confirmPin)
          Sets the confirm PIN.
 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 setInsertionOffsetNew(int insertionOffsetNew)
          Sets the new insertion offset.
 void setInsertionOffsetOld(int insertionOffsetOld)
          Sets the old insertion offset.
 void setLangId(int langId)
          Sets the language ID.
 void setMsgIndex1(int msgIndex1)
          Sets the message index 1.
 void setMsgIndex2(int msgIndex2)
          Sets the message index 2.
 void setMsgIndex3(int msgIndex3)
          Sets the message index 3.
 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 PinModify to the byte array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PinModify

public PinModify()
Creates an instance of PinModify.


PinModify

public PinModify(int timeOut,
                 int timeOut2,
                 int formatString,
                 int pinBlockString,
                 int pinLengthFormat,
                 int insertionOffsetOld,
                 int insertionOffsetNew,
                 int pinMaxExtraDigit,
                 int confirmPin,
                 int entryValidationCondition,
                 int numberMessage,
                 int langId,
                 int msgIndex1,
                 int msgIndex2,
                 int msgIndex3,
                 int teoPrologue0,
                 int teoPrologue1,
                 int teoPrologue2,
                 byte[] data,
                 int dataLength)
Creates and initializes an instance of PinModify.

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.
insertionOffsetOld - the insertion position offset in bytes for the current PIN.
insertionOffsetNew - the insertion position offset in bytes for the current PIN.
pinMaxExtraDigit - the PIN max extra digit. XXYY, where XX is minimum PIN size in digits, YY is maximum.
confirmPin - the flags governing need for confirmation of new PIN.
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.
msgIndex1 - the index of 1st prompting message.
msgIndex2 - the index of 2nd prompting message
msgIndex3 - the index of 2nd prompting message
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.

getInsertionOffsetOld

public int getInsertionOffsetOld()
Gets the old insertion offset.

Returns:
the old insertion offset.

setInsertionOffsetOld

public void setInsertionOffsetOld(int insertionOffsetOld)
Sets the old insertion offset.

Parameters:
insertionOffsetOld - the old insertion offset.

getInsertionOffsetNew

public int getInsertionOffsetNew()
Gets the new insertion offset.

Returns:
the new insertion offset.

setInsertionOffsetNew

public void setInsertionOffsetNew(int insertionOffsetNew)
Sets the new insertion offset.

Parameters:
insertionOffsetNew - the new insertion offset.

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.

getConfirmPin

public int getConfirmPin()
Gets the confirm PIN.

Returns:
the confirm PIN.

setConfirmPin

public void setConfirmPin(int confirmPin)
Sets the confirm PIN.

Parameters:
confirmPin - the confirm PIN.

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.

getMsgIndex1

public int getMsgIndex1()
Gets the message index 1.

Returns:
the message index 1.

setMsgIndex1

public void setMsgIndex1(int msgIndex1)
Sets the message index 1.

Parameters:
msgIndex1 - the message index 1.

getMsgIndex2

public int getMsgIndex2()
Gets the message index 2.

Returns:
the message index 2.

setMsgIndex2

public void setMsgIndex2(int msgIndex2)
Sets the message index 2.

Parameters:
msgIndex2 - the message index 2.

getMsgIndex3

public int getMsgIndex3()
Gets the message index 3.

Returns:
the message index 3.

setMsgIndex3

public void setMsgIndex3(int msgIndex3)
Sets the message index 3.

Parameters:
msgIndex3 - the message index 3.

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 PinModify to the byte array.

Returns:
the byte array.


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