telenor.com.rd.nfc
Class SimpleJetZ
java.lang.Object
javacard.framework.Applet
telenor.com.rd.nfc.SimpleJetZ
public class SimpleJetZ
- extends javacard.framework.Applet
A simple Java Card applet that provides ADPU commands for reading and writing of
16 byte datablocks on the SmartMX MIFARE 1k emulation.
Only one 16 byte datablock can be read or written at a time. Valid datablocks are
in the range from 0 to 63 except:
block 0
trailer blocks
Read APDU:
CLA = 0x80, INS=0x01, P1/P2=0x00, LC=, CDATA=
:
Write APDU:
CLA = 0x80, INS=0x02, P1/P2=0x00, LC=, CDATA=
: <16 byte data>
Application specific return values:
0x9000 (SW_NO_ERROR) - no error, 16 bytes with data on read
0x6984 (SW_DATA_INVALID) - requested MIFARE block outside of range (0-63)
0x6A80 (SW_WRONG_DATA) - error from JZSystem call, typically indicates wrong
mf-password and/or access of a trailer block
2006-02-26 Kjell M. Myksvoll,
Method Summary |
static void |
install(byte[] bArray,
short bOffset,
byte bLength)
|
void |
process(APDU apdu)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JZ_CLA
private static final byte JZ_CLA
- See Also:
- Constant Field Values
JZ_INS_READ
private static final byte JZ_INS_READ
- See Also:
- Constant Field Values
JZ_INS_WRITE
private static final byte JZ_INS_WRITE
- See Also:
- Constant Field Values
SimpleJetZ
public SimpleJetZ()
install
public static void install(byte[] bArray,
short bOffset,
byte bLength)
process
public void process(APDU apdu)