Package com.wibu.cm
Class CodeMeter.CMPROGRAM_ADD_FIRMITEM
- java.lang.Object
-
- com.wibu.cm.CodeMeter.CMPROGRAM_ADD_FIRMITEM
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMPROGRAM_ADD_FIRMITEM extends java.lang.ObjectCMPROGRAM_ADD_FIRMITEM contains all needed information to add a Firm Item to a CmContainer. The following parameters of the structure are encrypted: musFirm ItemTypeEncrypted to sessionId (inclusive). This member defines a sequence of 64 bytes which are encrypted by AES-CBC. The key and the CBC initialization vector depends on the addressed Firm Code and of parameters of the addressed CmContainer.
Definition for the class CMPROGRAM_ADD_FIRMITEM corresponding to the c-api struct CMPROGRAM_ADD_FIRMITEM
-
-
Field Summary
Fields Modifier and Type Field Description shortfirmAccessCounter(encrypted) contains the initial value of the Firm Access Counter.shortfirmItemReferencecontains the reserved Firm Item Reference received with CmReserveFirmItem().longfirmItemTypeEncrypted(encrypted) specifies the type of the Firm Item.longfirmItemTypePlainspecifies the type of the Firm Item.byte[]firmKey(encrypted) contains the secret Firm Key, which has a fixed length of CM_BLOCKCIPHER_KEY_LEN bytes.longfirmPreciseTime(encrypted) contains the new Firm Precise Time in seconds since 1st January 2000, 0:00:00.longfirmUpdateCounter(encrypted) contains the initial value of the Firm Update Counter.byte[]publicLicensorKeycontains 64 bytes of ECC Licensor Key which is required to decrypt the specified data via the private Box Key, Serial Key, Firm Common Key and Serial Number of the addressed CmContainer.longreserved(encrypted) should be set to 0.byte[]sessionId(encrypted) contains the Session ID received with CmReserveFirmItem().java.lang.Stringtextcontains the initial Firm Item Text of the Firm Item to program.
-
Constructor Summary
Constructors Constructor Description CMPROGRAM_ADD_FIRMITEM()
-
-
-
Field Detail
-
firmItemReference
public short firmItemReference
contains the reserved Firm Item Reference received with CmReserveFirmItem().
-
firmItemTypePlain
public long firmItemTypePlain
specifies the type of the Firm Item. The following flags can be set:- CM_GF_BOXBASED specifies that the Firm Item is programmed in the Box-Based-Mode.
- CM_GF_FILEBASED specifies that the Firm Item is programmed in the File-Based-Mode.
-
publicLicensorKey
public byte[] publicLicensorKey
contains 64 bytes of ECC Licensor Key which is required to decrypt the specified data via the private Box Key, Serial Key, Firm Common Key and Serial Number of the addressed CmContainer.
-
firmItemTypeEncrypted
public long firmItemTypeEncrypted
(encrypted) 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.
-
firmAccessCounter
public short firmAccessCounter
(encrypted) contains the initial value of the Firm Access Counter. If this member is set to 0xFFFF (the recommended value), this counter is not decremented by an encryption which targets this counter.
-
firmUpdateCounter
public long firmUpdateCounter
(encrypted) contains the initial value of the Firm Update Counter. The recommended value is 0.
-
firmPreciseTime
public long firmPreciseTime
(encrypted) contains the new Firm Precise Time in seconds since 1st January 2000, 0:00:00. If the value is not used, 0 must be specified, which sets this field to the Running Box Clock value.
-
reserved
public long reserved
(encrypted) should be set to 0. Reserved for future purposes.
-
firmKey
public byte[] firmKey
(encrypted) contains the secret Firm Key, which has a fixed length of CM_BLOCKCIPHER_KEY_LEN bytes.
-
sessionId
public byte[] sessionId
(encrypted) contains the Session ID received with CmReserveFirmItem(). (length is 2 * CM_SESSIONID_LEN bytes)
-
text
public java.lang.String text
contains the initial Firm Item Text of the Firm Item to program. (maximum length is CM_MAX_STRING_LEN bytes)
-
-