Class CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM
    extends java.lang.Object

    CMPROGRAM_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
      int ctrl
      contains flags set internally by the driver.
      int firmItemReference
      contains the reference of the Firm Item in which the Product Item should be updated.
      byte[] productItemOptionBuffer
      contains a byte sequence of variable length which specifies the added Product Code and all further ProductItem Options.
      int productItemReference
      contains the reference of the Product Item, which should be updated.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.)
    • Constructor Detail

      • CMPROGRAM_UPDATE_PRODUCTITEM

        public CMPROGRAM_UPDATE_PRODUCTITEM()