com.pax.dal.memorycard
Interface ICardSle4442
-
- All Superinterfaces:
- IMemoryCard
public interface ICardSle4442 extends IMemoryCard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidclose()下电SLE4442模块,并设置其为停止态Close Sle4442 module, and make it in stop status.voidopen()上电并复位SLE4442模块、检查模块的初始状态是否正常Power on and reset Sle4442 module, and check whether initial staus of the module is normal.byte[]readMMem(int Addr, int length)读取数据Read data.byte[]readProMMem()读取受保护数据Read proteceted data.byte[]reset()复位 IC卡,并返回卡的ATRReset IC card and return ATR of the card.voidupdateSc(byte[] newPwd)更新密码Update password.voidverifySc(byte[] pwd)验证密码Verify password.voidwriteMMem(int Addr, int length, byte[] dataIn)写入的数据Write data.voidwriteProMMem(int Addr, int length, byte[] dataIn)写入受保护数据Write proteceted data.-
Methods inherited from interface com.pax.dal.memorycard.IMemoryCard
setSlot
-
-
-
-
Method Detail
-
open
void open() throws Sle4442DevException
上电并复位SLE4442模块、检查模块的初始状态是否正常Power on and reset Sle4442 module, and check whether initial staus of the module is normal.- Throws:
Sle4442ExceptionSle4442DevException
-
close
void close() throws Sle4442DevException
下电SLE4442模块,并设置其为停止态Close Sle4442 module, and make it in stop status.- Throws:
Sle4442DevException
-
reset
byte[] reset() throws Sle4442DevException
复位 IC卡,并返回卡的ATRReset IC card and return ATR of the card.- Returns:
- 返回的卡的重置信息的ATR应答ATR Answer To Reset information of the card.
- Throws:
Sle4442DevException
-
readMMem
byte[] readMMem(int Addr, int length) throws Sle4442DevException
读取数据Read data.- Parameters:
Addr-读取的起始位置,合理取值区间为0-255.the start address to read, its valid range is 0~255.length-要读取的数据的长度,合法取值区间为1-256.the length of the data to be read, its valid range is 1~256.- Returns:
- 读取的数据the data has been read
- Throws:
Sle4442DevException
-
writeMMem
void writeMMem(int Addr, int length, byte[] dataIn) throws Sle4442DevException
写入的数据Write data.- Parameters:
Addr-写入的起始地址,合法取值区间为:0-255the start address to write, its valid range is 0~255.length-写入数据的长度,合法取值区间为:0-255the length of the data to be writen, its valid range is 0~255.dataIn-数据字节长度number bytes of data- Throws:
Sle4442DevException
-
readProMMem
byte[] readProMMem() throws Sle4442DevException
读取受保护数据Read proteceted data.- Returns:
- 已经被读取的数据the data has been read
- Throws:
Sle4442DevException
-
writeProMMem
void writeProMMem(int Addr, int length, byte[] dataIn) throws Sle4442DevException
写入受保护数据Write proteceted data.- Parameters:
Addr-写入的起始地址,合法区间为:0~31the start address to write, its valid range is 0~31.length-要写入的数据长度,合法区间:1-32.the length of the data to be writen, its valid range is 1~32.dataIn-数据字节数number bytes of data- Throws:
Sle4442DevException
-
verifySc
void verifySc(byte[] pwd) throws Sle4442DevException
验证密码Verify password.- Parameters:
pwd-密码字节数,应该为3字节number bytes of password, should be 3 bytes- Throws:
Sle4442DevException
-
updateSc
void updateSc(byte[] newPwd) throws Sle4442DevException
更新密码Update password.- Parameters:
newPwd-密码字节数,应该为3字节- Throws:
Sle4442DevException
-
-