Package com.wibu.CodeMeter
Class CodeMeter.CMPROGRAM_ADD_PRODUCTITEM
- java.lang.Object
-
- com.wibu.CodeMeter.CodeMeter.CMPROGRAM_ADD_PRODUCTITEM
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMPROGRAM_ADD_PRODUCTITEM extends java.lang.ObjectCMPROGRAM_ADD_PRODUCTITEM contains all needed information to add a Product Item to a CmDongle. All parameters are encrypted.
Definition for the class CMPROGRAM_ADD_PRODUCTITEM corresponding to the c-api struct CMPROGRAM_ADD_PRODUCTITEM
-
-
Field Summary
Fields Modifier and Type Field Description intfirmItemReference(encrypted) contains the Reference of the Firm Item for which the Product Item is to be added.byte[]productItemOptionBuffer(encrypted) contains a byte sequence of variable length which specifies the added Product Code and all further Product Item Options.intproductItemSuccessorReference(encrypted) contains the Reference of the Product Item, which will be the sucessor of the newly added Product Item.
-
Constructor Summary
Constructors Constructor Description CMPROGRAM_ADD_PRODUCTITEM()
-
-
-
Field Detail
-
firmItemReference
public int firmItemReference
(encrypted) contains the Reference of the Firm Item for which the Product Item is to be added. If this is 1 , the IFI (Implicit Firm Item) is used. The addressed item must not have set the type. 0 is either not permitted.
-
productItemSuccessorReference
public int productItemSuccessorReference
(encrypted) contains the Reference of the Product Item, which will be the sucessor of the newly added Product Item. If this value is 0 the Product Item is created at the end of the Product Item list. If firmItemReference specifies 0 for the IFI, the Product Item may be individually addressed by setting 2 for User Product Item (UPI). 1 for the Common Product Item (CPI) is not permitted because this must be always the first Product Item of the IFI.
-
productItemOptionBuffer
public byte[] productItemOptionBuffer
(encrypted) contains a byte sequence of variable length which specifies the added Product Code and all further Product Item Options. The sequence is defined by one or more subsequent CMCPIO_... structures. The parameter is filled with CmCreateProductItemOption() and finialized with CmCreateSequence(). The complete list is encrypted by AES-CBC. Finally, a 16-bytes TVB (Trailing Validation Block) is added, which is the encrypted SHA-256 hash of the preceeding padded byte sequence. (length of the buffer is fixed to 64 kbytes)
-
-