WriteObjectAPDU
public WriteObjectAPDU(byte[] object_id,
int offset,
TPSBuffer data)
Constructs Write Buffer APDU. This APDU is usually sent right after
the Create_Object_APDU is sent. This APDU writes the actual object
content into the object that was created with Create_Object_APDU.
This APDU is used for both write and re-writes of data.
The object data is stored starting from the byte specified by the
offset parameter.
Up to 240 bytes can be transferred with a single APDU. If more bytes
need to be transferred, then multiple WriteObject commands must be
used with different offsets.
WriteObject APDU format:
CLA 0x84
INS 0x54
P1 0x00
P2 0x00
lc Data Size + 9
DATA
[DATA] Parameters are:
Long Object ID;
Long Offset
Byte Data Size;
Byte[] Object Data
Connection requirement:
Secure Channel
Possible error Status Codes:
9C 06 - unauthorized
9C 07 - object not found
- Parameters:
object_id
- as defined in APDU
offset
-
data
-
- See Also:
APDU