Package com.wibu.CodeMeter
Class CodeMeter.CMENABLING_CONTEXT
- java.lang.Object
-
- com.wibu.CodeMeter.CodeMeter.CMENABLING_CONTEXT
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMENABLING_CONTEXT extends java.lang.ObjectCMENABLING_CONTEXT contains enabling data. It can be collected using CmGetInfo with option CM_GEI_ENABLEINFO. It can be used for enabling using CmProgram.
-
-
Field Summary
Fields Modifier and Type Field Description intdisableLevelspecifies the Disable Level.CodeMeter.CMTIMEdisableTimecontains disable time in seconds since the 1st January 2000 0:00:00 (UTC).byte[]enableAccessCodecontains the Enable Access Code.intenableLevelspecifies the Enable Level.java.lang.StringenablePasswordcontains the Enable Password.longfirmcodefirmcode contains the Firm Code the enabling block is attached to.intflagsspecifies the following states: CM_ELUE_VALID specifies that the Enabling Lookup Entry is a valid structure. CM_ELUE_IFI specifies that the Enabling Block Item of the IFI is used and not of the owning Firm Item. CM_ELUE_REQUIRED specifies that this lookup entry must permit the operation independent to other settings.intindexspecifies the EBI Index inside a Firm Item (or IFI).intitemTypespecifies the following item types: CM_EC_PRODUCTITEM specifies that the Enabling Block Item is attached to the Product Item. CM_EC_FIRMITEM specifies that the Enabling Block Item is attached to the Firm Item. CM_EC_GLOBALITEM specifies that the Enabling Block Item is attached to the IFI (Implicit Firm Item = Firm Code 0)intoptionspecifies the following flags.longproductcodeproductcode contains the Product Code the enabling block is attached to.java.lang.Stringtextcontains the text of the Enabling Block Item.inttypespecifies the type of the used enabling.
-
Constructor Summary
Constructors Constructor Description CMENABLING_CONTEXT()
-
-
-
Field Detail
-
firmcode
public long firmcode
firmcode contains the Firm Code the enabling block is attached to.
-
productcode
public long productcode
productcode contains the Product Code the enabling block is attached to. In case of value 0 check mbItemType to see if it is attached to Product Item with Product Code 0 or to the Firm Item.
-
option
public int option
specifies the following flags.- CM_EBI_VALID specifies that the enabling block item is a valid structure.
- CM_EBI_ENABLED specifies that the block is permanently enabled.
- CM_EBI_DISABLED specifies that the Disabling Flag of the Enabling Block Item is set and the block is permanently disabled.
- CM_EBI_TEMPENABLED specifies that the Enabling Block Item is temporarily enabled, independently of the static Enabling Status of the Enable Block Item. For firmware less version 1.18 this option is only permitted if the Enable Block Item is owned by the IFI (Implicit Firm Item = Firm Code 0).
-
index
public int index
specifies the EBI Index inside a Firm Item (or IFI).
-
type
public int type
specifies the type of the used enabling. This can be one of the following flags:- CM_EBI_SIMPLEPIN specifies that Simple Pin enabling is used.
- CM_EBI_TIMEPIN specifies that Time Pin enabling is used.
-
disableTime
public CodeMeter.CMTIME disableTime
contains disable time in seconds since the 1st January 2000 0:00:00 (UTC).
-
text
public java.lang.String text
contains the text of the Enabling Block Item. Only available for Time Pin.
-
flags
public int flags
specifies the following states:- CM_ELUE_VALID specifies that the Enabling Lookup Entry is a valid structure.
- CM_ELUE_IFI specifies that the Enabling Block Item of the IFI is used and not of the owning Firm Item.
- CM_ELUE_REQUIRED specifies that this lookup entry must permit the operation independent to other settings.
-
itemType
public int itemType
specifies the following item types:- CM_EC_PRODUCTITEM specifies that the Enabling Block Item is attached to the Product Item.
- CM_EC_FIRMITEM specifies that the Enabling Block Item is attached to the Firm Item.
- CM_EC_GLOBALITEM specifies that the Enabling Block Item is attached to the IFI (Implicit Firm Item = Firm Code 0)
-
enableAccessCode
public byte[] enableAccessCode
contains the Enable Access Code. The length must be between 2 and 16, if used. Otherwise it must be null.
-
enablePassword
public java.lang.String enablePassword
contains the Enable Password.
-
enableLevel
public int enableLevel
specifies the Enable Level. This can be one of the following flags (see mbDisableLevel).
-
disableLevel
public int disableLevel
specifies the Disable Level. This can be one of the following flags:- CM_ELUE_LOCATE only the reading of the Firm Code, the Product Code, the Enabling Block Table and the Enabling Lookup Table is permitted.
- CM_ELUE_READ the reading of the Firm Item or Product Item is permitted but no operations.
- CM_ELUE_ENCRYPT encryption, decryption and signature calculation is permitted but not with modification of the Unit Counter.
- CM_ELUE_UNITUSE encryption, decryption and signature calculation may change the Unit Counter. In a Firm Item, the Firm Update Counter and the Access Counter may be changed.
- CM_ELUE_MODIFY all operations are permitted including modification of the properties by update commands.
-
-