Package com.wibu.cm

Class CodeMeter.CMPIOCK

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMPIOCK
    extends java.lang.Object
    CMPIOCK stores all data needed for PIOCK calculation.

    Definition for the class CMPIOCK corresponding to the c-api struct CMPIOCK. CMPIOCK stores all data needed for PIOCK calculation.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      CodeMeter.CMSECUREDATA cmSecureData
      contains all needed parameters for an encryption (see CMSECUREDATA).
      long ctrl
      specifies the type of the Firm Item.
      byte[] extFirmKey
      contains a external key for the simulated encryption.
      long firmCode
      specifies the Firm Code used for the simulated encryption.
      long hiddenDataAccessCode
      contains the HDAC (Hidden Data Access Code), which is stored in the HiddenData PIO.
      long productCode
      specifies the Product Code used for the simulated encryption.
    • Constructor Summary

      Constructors 
      Constructor Description
      CMPIOCK()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cmSecureData

        public CodeMeter.CMSECUREDATA cmSecureData
        contains all needed parameters for an encryption (see CMSECUREDATA).
      • ctrl

        public long ctrl
        specifies the type of the Firm Item. The following flags can be set:
        • CM_GF_BOXBASED specifies that the Firm Item was programmed in the Box-Based-Mode.
        • CM_GF_FILEBASED specifies that the Firm Item was programmed in the File-Based-Mode.
      • firmCode

        public long firmCode
        specifies the Firm Code used for the simulated encryption.
      • productCode

        public long productCode
        specifies the Product Code used for the simulated encryption.
      • hiddenDataAccessCode

        public long hiddenDataAccessCode
        contains the HDAC (Hidden Data Access Code), which is stored in the HiddenData PIO. This value is not used and must be set to 0 (the default value) for other PIO types.
      • extFirmKey

        public byte[] extFirmKey
        contains a external key for the simulated encryption. This can only be the data of a HiddenData or SecretData of a real CmContainer entry with the normal en-/decryption. (array length is CM_BLOCKCIPHER_KEY_LEN bytes)
    • Constructor Detail

      • CMPIOCK

        public CMPIOCK()