|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.datecs.api.rfid.ContactlessCard
com.datecs.api.rfid.ISO15693Card
public class ISO15693Card
A class that represents ISO15693 cards.
Field Summary |
---|
Fields inherited from class com.datecs.api.rfid.ContactlessCard |
---|
afi, atqa, blockSize, capacity, CARD_FELICA, CARD_ISO14443A, CARD_ISO14443B, CARD_ISO15693, CARD_MIFARE_CLASSIC_1K, CARD_MIFARE_CLASSIC_4K, CARD_MIFARE_DESFIRE, CARD_MIFARE_MINI, CARD_MIFARE_PLUS, CARD_MIFARE_ULTRALIGHT, CARD_MIFARE_ULTRALIGHT_C, CARD_ST_SRI, CARD_UNKNOWN, channel, dsfid, hyatt64Card, maxBlocks, sak, type, uid |
Constructor Summary | |
---|---|
ISO15693Card(RC663 module)
Constructs a new instance of this class. |
Method Summary | |
---|---|
byte[] |
getBlocksSecurityStatus(int startBlock,
int blocks)
Reads the security status of one more more blocks from ISO 15693 card. |
boolean |
initialize()
Initialize card. |
void |
lockAFI()
Locks ISO 15693 AFI preventing further changes. |
void |
lockBlock(int block)
Locks a single ISO 15693 card block. |
void |
lockDSFID()
Locks ISO 15693 card DSFID preventing further changes. |
byte[] |
read(int startBlock,
int blocks)
Reads one more more blocks of data from ISO 15693 card. |
int |
write(int startBlock,
byte[] data)
Writes one more more blocks of data to ISO 15693 card. |
void |
writeAFI(byte afi)
Changes ISO 15693 card AFI. |
void |
writeDSFID(byte dsfid)
Changes ISO 15693 card DSFID. |
Methods inherited from class com.datecs.api.rfid.ContactlessCard |
---|
getModule, waitRemove |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ISO15693Card(RC663 module)
module
- The instance of RC663
module.Method Detail |
---|
public boolean initialize() throws java.io.IOException
java.io.IOException
- if an I/O error occurs.public void lockBlock(int block) throws java.io.IOException, RFIDException
Locked blocks cannot be written upon anymore.
block
- The block index to lock.
java.io.IOException
- If an I/O error occurs.
RFIDException
- if an RF663 error occurs.public byte[] read(int startBlock, int blocks) throws java.io.IOException, RFIDException
startBlock
- The starting block to read from.blocks
- The number of bytes to read, this must be multiple of block size.
java.io.IOException
- If an I/O error occurs.
RFIDException
- if an RF663 error occurs.public int write(int startBlock, byte[] data) throws java.io.IOException, RFIDException
startBlock
- The starting block to write to.data
- The data to write, it must be multiple of block size.
java.io.IOException
- If an I/O error occurs.
RFIDException
- if an RF663 error occurs.public void writeAFI(byte afi) throws java.io.IOException, RFIDException
afi
- New AFI value.
java.io.IOException
- If an I/O error occurs.
RFIDException
- if an RF663 error occurs.public void lockAFI() throws java.io.IOException, RFIDException
java.io.IOException
- If an I/O error occurs.
RFIDException
- if an RF663 error occurs.public void writeDSFID(byte dsfid) throws java.io.IOException, RFIDException
dsfid
- The new DSFID value.
java.io.IOException
- If an I/O error occurs.
RFIDException
- if an RF663 error occurs.public void lockDSFID() throws java.io.IOException, RFIDException
java.io.IOException
- If an I/O error occurs.
RFIDException
- if an RF663 error occurs.public byte[] getBlocksSecurityStatus(int startBlock, int blocks) throws java.io.IOException, RFIDException
startBlock
- The starting block to read from.blocks
- The number of blocks to get the security status.
java.io.IOException
- If an I/O error occurs.
RFIDException
- if an RF663 error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |