public class ISO15693Card extends ContactlessCard
afi, atqa, blockSize, capacity, CARD_EPASSPORT, 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_PAYMENT, CARD_PICOPASS_14443B, CARD_PICOPASS_15693, CARD_ST_SRI, CARD_UNKNOWN, channel, dsfid, hyatt64Card, maxBlocks, mModule, sak, type, uid
Constructor and Description |
---|
ISO15693Card(RC663 module)
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
deinitialise()
Deinitialise card.
|
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.
|
getModule, getTypeName, waitRemove
protected boolean deinitialise() throws java.io.IOException
ContactlessCard
deinitialise
in class ContactlessCard
java.io.IOException
- if an I/O error occurs.public boolean initialize() throws java.io.IOException
initialize
in class ContactlessCard
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.