Package com.wibu.CodeMeter
Class CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM
- java.lang.Object
-
- com.wibu.CodeMeter.CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM extends java.lang.ObjectCMPROGRAM_UPDATE_PRODUCTITEM contains all needed parameters to update a Product Item.
Definition for the class CMPROGRAM_UPDATE_PRODUCTITEM corresponding to the c-api struct CMPROGRAM_UPDATE_PRODUCTITEM
-
-
Field Summary
Fields Modifier and Type Field Description intctrlcontains flags set internally by the driver.intfirmItemReferencecontains the reference of the Firm Item in which the Product Item should be updated.byte[]productItemOptionBuffercontains a byte sequence of variable length which specifies the added Product Code and all further ProductItem Options.intproductItemReferencecontains the reference of the Product Item, which should be updated.
-
Constructor Summary
Constructors Constructor Description CMPROGRAM_UPDATE_PRODUCTITEM()
-
-
-
Field Detail
-
firmItemReference
public int firmItemReference
contains the reference of the Firm Item in which the Product Item should be updated.
-
productItemReference
public int productItemReference
contains the reference of the Product Item, which should be updated.
-
ctrl
public int ctrl
contains flags set internally by the driver.
-
productItemOptionBuffer
public byte[] productItemOptionBuffer
contains a byte sequence of variable length which specifies the added Product Code and all further ProductItem 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. (The length of the buffer is fixed to 64kbytes.)
-
-