public class ReaderAT88SC1608 extends Reader
CardModeASYNC, CardModeAT45D041, CardModeAT88SC102, CardModeAT88SC153, CardModeAT88SC1608, CardModeI2C, CardModeINPHONE, CardModeSLE4428, CardModeSLE4442, CardModeSLE6636, CCID_POWEROFF, CCID_POWERON, CCID_PROTOCOL_NA, CCID_PROTOCOL_T0, CCID_PROTOCOL_T1, SLOT_STATUS_CARD_ABSENT, SLOT_STATUS_CARD_ACTIVE, SLOT_STATUS_CARD_INACTIVE| Constructor and Description |
|---|
ReaderAT88SC1608(HardwareInterface Dev)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
AT88SC1608Cmd_InitializeAuthentication(byte[] pbHostRand)
AT88SC1608Cmd_InitializeAuthentication sends INITIALIZE AUTHENTICATION command to the card.
|
int |
AT88SC1608Cmd_ReadConfigurationZone(byte bAddress,
byte bReadLen,
byte[] pReadBuffer,
int[] pIntReturnLen)
AT88SC1608Cmd_ReadConfigurationZone reads data from the configuration zone of the card.
|
int |
AT88SC1608Cmd_ReadUserZone(byte bAddress,
byte bReadLen,
byte[] pReadBuffer,
int[] pIntReturnLen)
AT88SC1608Cmd_ReadUserZone reads data from the current user zone of the card
|
int |
AT88SC1608Cmd_SetUserZoneAddress(byte bAddress)
AT88SC1608Cmd_SetUserZoneAddress selects the current user zone number.
|
int |
AT88SC1608Cmd_VerifyAuthentication(byte[] pbHostChallenge)
AT88SC1608Cmd_VerifyAuthentication sends VERIFY AUTHENTICATION command to the card
|
int |
AT88SC1608Cmd_VerifyPassword(byte bZoneNo,
boolean bIsReadAccess,
byte bPW1,
byte bPW2,
byte bPW3)
AT88SC1608Cmd_VerifyPassword verifies the read/write password of the selected zone.
|
int |
AT88SC1608Cmd_WriteConfigurationZone(byte bAddress,
byte bWriteLen,
byte[] pWriteBuffer)
AT88SC1608Cmd_WriteConfigurationZone writes data to the configuration zone of the card.
|
int |
AT88SC1608Cmd_WriteUserZone(byte bAddress,
byte bWriteLen,
byte[] pWriteBuffer)
AT88SC1608Cmd_WriteUserZone writes data to the current user zone of the card..
|
int |
open()
To open the reader.
|
int |
open(int slot)
To open reader with given slot
|
close, escape, getAtr, getAtrString, getCardStatus, getCmdFailCode, getCurrentDev, getProtocol, getSN, setPower, setSlot, switchMode, transmitpublic ReaderAT88SC1608(HardwareInterface Dev) throws ReaderException
Dev - HardwareInterface object which has been initialedReaderExceptionReaderExceptionpublic int open(int slot)
Readerpublic int open()
Readerpublic int AT88SC1608Cmd_WriteUserZone(byte bAddress,
byte bWriteLen,
byte[] pWriteBuffer)
bAddress - The memory address in the current user zone to write to.bWriteLen - Number of bytes to be written to the card.pWriteBuffer - Pointer to the buffer containing the data to be written to the card.public int AT88SC1608Cmd_ReadUserZone(byte bAddress,
byte bReadLen,
byte[] pReadBuffer,
int[] pIntReturnLen)
bAddress - The memory address in the current user zone to read from.bReadLen - Number of bytes to be read from the card.pReadBuffer - Pointer to a buffer that receives the data read from the card.pIntReturnLen - Number of bytes which is actually received data from the card.public int AT88SC1608Cmd_WriteConfigurationZone(byte bAddress,
byte bWriteLen,
byte[] pWriteBuffer)
bAddress - The memory address in the current user zone to write to.bWriteLen - Number of bytes to be written to the card.pWriteBuffer - Pointer to the buffer containing the data to be written to the card.public int AT88SC1608Cmd_ReadConfigurationZone(byte bAddress,
byte bReadLen,
byte[] pReadBuffer,
int[] pIntReturnLen)
bAddress - The memory address in the configuration zone to read from.bReadLen - Number of bytes to be read from the card.pReadBuffer - Pointer to a buffer that receives the data read from the card.pIntReturnLen - Number of bytes which is actually received data from the card.public int AT88SC1608Cmd_SetUserZoneAddress(byte bAddress)
bAddress - The user zone number to be selected. This value is between 0 to 7. Other value will be rejected.public int AT88SC1608Cmd_VerifyPassword(byte bZoneNo,
boolean bIsReadAccess,
byte bPW1,
byte bPW2,
byte bPW3)
bZoneNo - The zone number.bIsReadAccess - TRUE for read password. FALSE for write password.bPW1 - Password 1.bPW2 - Password 2.bPW3 - Password 3.public int AT88SC1608Cmd_InitializeAuthentication(byte[] pbHostRand)
pbHostRand - Pointer to the buffer containing the 8 bytes data of host random numbers.public int AT88SC1608Cmd_VerifyAuthentication(byte[] pbHostChallenge)
pbHostChallenge - Pointer to the buffer containing the 8 bytes data of host challenge.