Class CreateObjectAPDU

java.lang.Object
org.dogtagpki.tps.apdu.APDU
org.dogtagpki.tps.apdu.CreateObjectAPDU

public class CreateObjectAPDU extends APDU
  • Constructor Details

    • CreateObjectAPDU

      public CreateObjectAPDU(byte[] object_id, byte[] permissions, int len)
      Constructs a Create Object APDU. This APDU is usually sent right before Write_Buffer_APDU is sent. This APDU only creates an Object on token, but does not actually writes object content until Write_Buffer_APDU is sent. CreateObject APDU format: CLA 0x84 INS 0x5a P1 0x00 P2 0x00 lc 0x0e DATA [DATA] Object Parameters are: Long Object ID; Long Object Size; ObjectACL ObjectACL; Connection requirement: Secure Channel Possible error Status Codes: 9C 06 - unauthorized 9C 08 - object already exists 9C 01 - insufficient memory on card to complete the operation NOTE: Observe that the PIN identity is hard-coded at n.2 for each permission. In Housekey, this is probably a non-issue, however, in housekey, do we not allow multiple people (presumably closely -related) to share one token with individual certs? We should consider exposing this as an input param.
      Parameters:
      object_id - as defined in APDU
      len - length of object
      See Also:
    • Method Details