Package org.dogtagpki.tps.apdu
Class ImportKeyAPDU
java.lang.Object
org.dogtagpki.tps.apdu.APDU
org.dogtagpki.tps.apdu.ImportKeyAPDU
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors -
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
-
ImportKeyAPDU
public ImportKeyAPDU(byte p1) Constructs Import Key APDU. CLA 0x84 INS 0x32 P1 Key Number (0x00 -0x0F) - key slot number defined in CS.cfg P2 0x00 P3 Import Parameters Length (6 bytes: 3 shorts if just for ACL) DATA Import Parameters This function allows th eimport of a key into the card by (over)-writing the Cardlet memory. Object ID 0xFFFFFFFE needs to be initialized with a key blob before invocation of this function so tha tit can retrieve the key from this object. The exact key blob contents depend on th ekey's algorithm, type and actual import parameters. The key's number, algorithm type, and parameters are specified by argumetns P1, P2, P3, and DATA. Appropriate values for these are specified below: [DATA] Import Parameters: KeyACL ACL for the imported key; Byte[] Additional parameters; // Optional If KeyBlob's Encoding is BLOB_ENC_PLAIN(0x00), there are no additional parameters.
-
-
Method Details