Package org.dogtagpki.tps.apdu
Class WriteObjectAPDU
java.lang.Object
org.dogtagpki.tps.apdu.APDU
org.dogtagpki.tps.apdu.WriteObjectAPDU
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionWriteObjectAPDU
(byte[] object_id, int offset, TPSBuffer data) Constructs Write Buffer APDU. -
Method Summary
Methods inherited from class org.dogtagpki.tps.apdu.APDU
dump, getCLA, getData, getDataToMAC, getEncoding, getINS, getMAC, getP1, getP2, incrementBuffer, padBuffer80, secureMessage, secureMessageSCP02, secureMessageSCP03, setMAC, setTrailer
-
Constructor Details
-
WriteObjectAPDU
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 APDUoffset
-data
-- See Also:
-
-
Method Details