Package com.wibu.cm
Class CodeMeter.CMPIOCK
- java.lang.Object
-
- com.wibu.cm.CodeMeter.CMPIOCK
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMPIOCK extends java.lang.ObjectCMPIOCK 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.CMSECUREDATAcmSecureDatacontains all needed parameters for an encryption (see CMSECUREDATA).longctrlspecifies the type of the Firm Item.byte[]extFirmKeycontains a external key for the simulated encryption.longfirmCodespecifies the Firm Code used for the simulated encryption.longhiddenDataAccessCodecontains the HDAC (Hidden Data Access Code), which is stored in the HiddenData PIO.longproductCodespecifies the Product Code used for the simulated encryption.
-
Constructor Summary
Constructors Constructor Description CMPIOCK()
-
-
-
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)
-
-