|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.device.IccManager
public class IccManager
The android.device.IccManager class provides support for IC card reader and SAM card reader
Constructor Summary | |
---|---|
IccManager()
|
Method Summary | |
---|---|
byte[] |
IccAct(char volt)
Activate the selected slot. |
boolean |
IccClose()
Close the card reader |
byte[] |
IccExapdu(byte[] apdu_utf,
char apdu_count)
Sends APDU commands |
byte[] |
IccFound()
Search card reader slots for care present |
boolean |
IccOpen()
Open the card reader |
int |
IccSelect(char slot)
Select the operating card reader |
byte[] |
Sle4442Act(char volt,
byte[] atr_len)
Activate IC4442 from the selected slot. |
byte[] |
SleReadmainmem(char addr,
char length)
Read and store the data in SLE4442 |
byte[] |
SleReadprotecmem()
Read SLE4442 card protection bit storage data (4 BYTE). 4 bytes of data read is to save the SLE4442 bits data in storage area. |
int |
SleVerify(byte[] passwd)
Comparison of SLE4442 cards, each card after power compared to the card password, otherwise the card data is read-only, you will not be on the card of any write operation. |
int |
SleWritemainmem(char addr,
char data)
Write data to the main storage area SLE4442 |
int |
SleWriteProtecmem(char addr,
char data)
The write protect bit storage area. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IccManager()
Method Detail |
---|
public boolean IccOpen()
public boolean IccClose()
public byte[] IccFound()
public int IccSelect(char slot)
slot
- Position to be used (typically a position with card present as checked by IccFound).
public byte[] IccAct(char volt)
volt
- The operating voltage. Could be 5V, 3V etc
public byte[] IccExapdu(byte[] apdu_utf, char apdu_count)
apdu_utf
- The apdu command to sendapdu_count
- The apdu command length
public byte[] Sle4442Act(char volt, byte[] atr_len)
volt
- The operating voltage. Could be 5V, 3V etcatr_len
- for the byte array indicating the ATR length.
public byte[] SleReadmainmem(char addr, char length)
addr
- The starting address of operation data, the range of the parameters of the SLE4442 card: 0---255.length
- To read the data length, the range of the parameters of the SLE4442 card: 1---256.
In addition to ByteAddr and Length and cannot be greater than the actual capacity of the card,
otherwise the reader will refuse to execute the command, and returns an error.
public int SleWritemainmem(char addr, char data)
addr
- The starting address of operation data, the range of the parameters of the SLE4442 card: 0---255.data
- The data to be written
public byte[] SleReadprotecmem()
public int SleWriteProtecmem(char addr, char data)
addr
- The starting address of operation data, the range of the parameters of the SLE4442 card: 0---31.data
- Write protect bit data
public int SleVerify(byte[] passwd)
passwd
- The data buffer pointer password, password here to store data migration and card in the password.
The first byte of
pt corresponding to protected storage
(pt+1) corresponding to second byte protected storage
(pt+2) corresponding to third byte protected storage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |