Class CodeMeter

  • Direct Known Subclasses:
    CodeMeterAct

    public class CodeMeter
    extends java.lang.Object
    CodeMeter Java-API-Documentation. This documentation describes the CodeMeter Java classes (e.g. CodeMeter) in the package com.wibu.CodeMeter. If you have further questions or find any errors, please send an email to support@wibu.de.

    For additional information please read also the CodeMeter C-API online help.

    • Field Detail

      • major

        protected static final int major
        Version number of this library. The version consists of a major, a minor and a build version.
        See Also:
        Constant Field Values
      • CMERROR_NO_ERROR

        public static final int CMERROR_NO_ERROR
        Error code 0: No error occurred.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDUNDEFINED

        public static final int CMERROR_COMMANDUNDEFINED
        Error code 1: The specified CmDongle command is not defined.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDINVALID

        public static final int CMERROR_COMMANDINVALID
        Error code 2: The specified CmDongle command is not permitted to be used.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDTOOLARGE

        public static final int CMERROR_COMMANDTOOLARGE
        Error code 3: The received CmDongle command sequence is too long.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDWRONG

        public static final int CMERROR_COMMANDWRONG
        Error code 4: The received CmDongle command sequence is wrong.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDTVBWRONG

        public static final int CMERROR_COMMANDTVBWRONG
        Error code 5: The TVB of the CmDongle command sequence is wrong.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDINCOMPLETE

        public static final int CMERROR_COMMANDINCOMPLETE
        Error code 6: The received CmDongle command sequence is incomplete.
        See Also:
        Constant Field Values
      • CMERROR_AWAITENCRYPTIONRESTART

        public static final int CMERROR_AWAITENCRYPTIONRESTART
        Error code 7: The CmDongle awaits the restarting of the Encryption Communication Mode.
        See Also:
        Constant Field Values
      • CMERROR_ANSWERBUFFERFULL

        public static final int CMERROR_ANSWERBUFFERFULL
        Error code 8: The size of the answer buffer was too small to execute the command.
        See Also:
        Constant Field Values
      • CMERROR_VALUETOOLARGE

        public static final int CMERROR_VALUETOOLARGE
        Error code 9: The specified value is too large.
        See Also:
        Constant Field Values
      • CMERROR_OPTIONUNDEFINED

        public static final int CMERROR_OPTIONUNDEFINED
        Error code 10: The specified option is not defined.
        See Also:
        Constant Field Values
      • CMERROR_OPTIONINVALID

        public static final int CMERROR_OPTIONINVALID
        Error code 11: The specified option is not permitted to be used.
        See Also:
        Constant Field Values
      • CMERROR_TYPEUNDEFINED

        public static final int CMERROR_TYPEUNDEFINED
        Error code 12: The specified type is not defined.
        See Also:
        Constant Field Values
      • CMERROR_TYPEWRONG

        public static final int CMERROR_TYPEWRONG
        Error code 13: The specified type is wrong.
        See Also:
        Constant Field Values
      • CMERROR_KEYSOURCEUNDEFINED

        public static final int CMERROR_KEYSOURCEUNDEFINED
        Error code 14: The Key Source is not defined.
        See Also:
        Constant Field Values
      • CMERROR_KEYSOURCEINVALID

        public static final int CMERROR_KEYSOURCEINVALID
        Error code 15: The specified Key Source is invalid.
        See Also:
        Constant Field Values
      • CMERROR_KEYSOURCEMISSED

        public static final int CMERROR_KEYSOURCEMISSED
        Error code 16: A required Key Source is not available.
        See Also:
        Constant Field Values
      • CMERROR_KEYSOURCEWRONG

        public static final int CMERROR_KEYSOURCEWRONG
        Error code 17: The specified or required Key Source is of invalid format.
        See Also:
        Constant Field Values
      • CMERROR_DATATOOSHORT

        public static final int CMERROR_DATATOOSHORT
        Error code 18: The specified data is too short.
        See Also:
        Constant Field Values
      • CMERROR_DATATOOLONG

        public static final int CMERROR_DATATOOLONG
        Error code 19: The specified data or text is too long.
        See Also:
        Constant Field Values
      • CMERROR_DATAWRONG

        public static final int CMERROR_DATAWRONG
        Error code 20: The specified data is of invalid format.
        See Also:
        Constant Field Values
      • CMERROR_FIRMITEMINVALID

        public static final int CMERROR_FIRMITEMINVALID
        Error code 21: The specified Firm Item Reference is invalid.
        See Also:
        Constant Field Values
      • CMERROR_FIRMCODEEXISTS

        public static final int CMERROR_FIRMCODEEXISTS
        Error code 22: A Firm Item with the specified Firm Code already exists.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMINVALID

        public static final int CMERROR_PRODUCTITEMINVALID
        Error code 23: The specified Product Item Reference is invalid.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMOPTIONUNDEFINED

        public static final int CMERROR_PRODUCTITEMOPTIONUNDEFINED
        Error code 24: The specified Product Item Option is not defined.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMOPTIONINVALID

        public static final int CMERROR_PRODUCTITEMOPTIONINVALID
        Error code 25: The specified Product Item Option is invalid.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMOPTIONMISSED

        public static final int CMERROR_PRODUCTITEMOPTIONMISSED
        Error code 26: A required Product Item Option is not available.
        See Also:
        Constant Field Values
      • CMERROR_FIRMCODEWRONG

        public static final int CMERROR_FIRMCODEWRONG
        Error code 27: The specified Firm Code is wrong.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTCODEWRONG

        public static final int CMERROR_PRODUCTCODEWRONG
        Error code 28: The specified Product Code cannot be used.
        See Also:
        Constant Field Values
      • CMERROR_FEATUREMAPMISSED

        public static final int CMERROR_FEATUREMAPMISSED
        Error code 29: A required Feature Map is not available.
        See Also:
        Constant Field Values
      • CMERROR_FEATUREMAPINCOMPATIBLE

        public static final int CMERROR_FEATUREMAPINCOMPATIBLE
        Error code 30: The specified Feature Code does not match the used Feature Map.
        See Also:
        Constant Field Values
      • CMERROR_UNITCOUNTERMISSED

        public static final int CMERROR_UNITCOUNTERMISSED
        Error code 31: A Unit Counter is not available - the en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_UNITCOUNTERZERO

        public static final int CMERROR_UNITCOUNTERZERO
        Error code 32: The Unit Counter is zero - the en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_UNITCOUNTERUNDERRUN

        public static final int CMERROR_UNITCOUNTERUNDERRUN
        Error code 33: The Unit Counter would underrun - the en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_EXPIRATIONTIMEMISSED

        public static final int CMERROR_EXPIRATIONTIMEMISSED
        Error code 34: An Expiration Time is not available - the en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_EXPIRATIONTIMEOVERRUN

        public static final int CMERROR_EXPIRATIONTIMEOVERRUN
        Error code 35: The Expiration Time is overrun - the en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_ACTIVATIONTIMEMISSED

        public static final int CMERROR_ACTIVATIONTIMEMISSED
        Error code 36: An Activation Time is not available - the en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_ACTIVATIONTIMEUNDERRUN

        public static final int CMERROR_ACTIVATIONTIMEUNDERRUN
        Error code 37: The Activation Time is underrun - the en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_FIRMACCESSCOUNTERZERO

        public static final int CMERROR_FIRMACCESSCOUNTERZERO
        Error code 38: The Firm Access Counter is zero - the en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_CERTIFIEDTIMEOBSOLETE

        public static final int CMERROR_CERTIFIEDTIMEOBSOLETE
        Error code 39: The Certified Box Clock (CBC) is not updated by a Certified Time Creation Server.
        See Also:
        Constant Field Values
      • CMERROR_ENCRYPTIONINVALID

        public static final int CMERROR_ENCRYPTIONINVALID
        Error code 40: The encryption operation is not permitted.
        See Also:
        Constant Field Values
      • CMERROR_DIFFIEHELLMANFAILED

        public static final int CMERROR_DIFFIEHELLMANFAILED
        Error code 41: A Diffie Hellman key agreement failed.
        See Also:
        Constant Field Values
      • CMERROR_ECIESFAILED

        public static final int CMERROR_ECIESFAILED
        Error code 42: An ECIES decryption failed.
        See Also:
        Constant Field Values
      • CMERROR_SUBCOMMANDUNDEFINED

        public static final int CMERROR_SUBCOMMANDUNDEFINED
        Error code 43: The specified subcommand is undefined.
        See Also:
        Constant Field Values
      • CMERROR_SUBCOMMANDINVALID

        public static final int CMERROR_SUBCOMMANDINVALID
        Error code 44: The specified subcommand is not permitted.
        See Also:
        Constant Field Values
      • CMERROR_SUBCOMMANDINCOMPLETE

        public static final int CMERROR_SUBCOMMANDINCOMPLETE
        Error code 45: The specified subcommand is incomplete.
        See Also:
        Constant Field Values
      • CMERROR_SUBCOMMANDSTRUCTUREWRONG

        public static final int CMERROR_SUBCOMMANDSTRUCTUREWRONG
        Error code 46: The specified sequence has a wrong structure.
        See Also:
        Constant Field Values
      • CMERROR_TVBWRONG

        public static final int CMERROR_TVBWRONG
        Error code 47: The Trailing Validation Block (TVB) is wrong.
        See Also:
        Constant Field Values
      • CMERROR_FIRMUPDATECOUNTERWRONG

        public static final int CMERROR_FIRMUPDATECOUNTERWRONG
        Error code 48: The specified Firm Update Counter value is wrong.
        See Also:
        Constant Field Values
      • CMERROR_PITVBFLAGINVALID

        public static final int CMERROR_PITVBFLAGINVALID
        Error code 49: A specified Product Item TVB control flag is invalid.
        See Also:
        Constant Field Values
      • CMERROR_PITVBFLAGINCOMPATIBLE

        public static final int CMERROR_PITVBFLAGINCOMPATIBLE
        Error code 50: A specified Product Item TVB control flag does not match the set flag.
        See Also:
        Constant Field Values
      • CMERROR_ENABLEBLOCKUSED

        public static final int CMERROR_ENABLEBLOCKUSED
        Error code 51: The specified Enabling Block is used and cannot be deleted.
        See Also:
        Constant Field Values
      • CMERROR_BOXDISABLED

        public static final int CMERROR_BOXDISABLED
        Error code 52: The CmDongle is disabled by the Implicit Firm Item.
        See Also:
        Constant Field Values
      • CMERROR_FIRMITEMDISABLED

        public static final int CMERROR_FIRMITEMDISABLED
        Error code 53: The specified Firm Item is disabled.
        See Also:
        Constant Field Values
      • CMERROR_PRODUCTITEMDISABLED

        public static final int CMERROR_PRODUCTITEMDISABLED
        Error code 54: The specified Product Item is disabled.
        See Also:
        Constant Field Values
      • CMERROR_INDEXINVALID

        public static final int CMERROR_INDEXINVALID
        Error code 55: The specified index is invalid.
        See Also:
        Constant Field Values
      • CMERROR_LEVELINVALID

        public static final int CMERROR_LEVELINVALID
        Error code 56: The specified Enabling Level is invalid.
        See Also:
        Constant Field Values
      • CMERROR_TABLEFULL

        public static final int CMERROR_TABLEFULL
        Error code 57: The size of the destination table is full.
        See Also:
        Constant Field Values
      • CMERROR_MEMORYFULL

        public static final int CMERROR_MEMORYFULL
        Error code 58: The permanent memory of the CmDongle is too small.
        See Also:
        Constant Field Values
      • CMERROR_MEMORYDAMAGED

        public static final int CMERROR_MEMORYDAMAGED
        Error code 59: The memory content is damaged to execute a specific operation.
        See Also:
        Constant Field Values
      • CMERROR_QUEENMEMORYDAMAGED

        public static final int CMERROR_QUEENMEMORYDAMAGED
        Error code 60: The CRC value for the Queen Memory is wrong.
        See Also:
        Constant Field Values
      • CMERROR_FIRMITEMDAMAGED

        public static final int CMERROR_FIRMITEMDAMAGED
        Error code 61: The specified Firm Item Reference is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_CRTOKENOBSOLETE

        public static final int CMERROR_CRTOKENOBSOLETE
        Error code 62: The used challenge response token is obsolete.
        See Also:
        Constant Field Values
      • CMERROR_MEMORYWRITEFAILED

        public static final int CMERROR_MEMORYWRITEFAILED
        Error code 63: The CmDongle memory cannot be written.
        See Also:
        Constant Field Values
      • CMERROR_BOXBUSY

        public static final int CMERROR_BOXBUSY
        Error code 64: The CmDongle is executing a previously started command.
        See Also:
        Constant Field Values
      • CMERROR_FEATURECODEINVALID

        public static final int CMERROR_FEATURECODEINVALID
        Error code 65: The specified Feature Code is invalid.
        See Also:
        Constant Field Values
      • CMERROR_COMMANDUNSUPPORTED

        public static final int CMERROR_COMMANDUNSUPPORTED
        Error code 66: The specified command is not supported in the current mode.
        See Also:
        Constant Field Values
      • CMERROR_FIELDUPDATELIMITEXCEEDED

        public static final int CMERROR_FIELDUPDATELIMITEXCEEDED
        Error code 67: The maximum number of Field Updates for a current version is exceeded.
        See Also:
        Constant Field Values
      • CMERROR_FLASHWRITEFAILED

        public static final int CMERROR_FLASHWRITEFAILED
        Error code 68: A write command to Flash memory (Firmware) failed because the memory is damaged.
        See Also:
        Constant Field Values
      • CMERROR_ACCESSMODEWRONG

        public static final int CMERROR_ACCESSMODEWRONG
        Error code 69: The used Access Mode does not support the command or mode.
        See Also:
        Constant Field Values
      • CMERROR_BOXLOST

        public static final int CMERROR_BOXLOST
        Error code 70: A previously attached CmContainer is no longer available.
        See Also:
        Constant Field Values
      • CMERROR_USAGEPERIODOVERRUN

        public static final int CMERROR_USAGEPERIODOVERRUN
        Error code 71: The Usage Period has expired - en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_USAGEPERIODUNDERRUN

        public static final int CMERROR_USAGEPERIODUNDERRUN
        Error code 72: The start time of an Usage Period is not reached - en-/decryption cannot be performed.
        See Also:
        Constant Field Values
      • CMERROR_BOXLOCKED

        public static final int CMERROR_BOXLOCKED
        Error code 73: The CmContainer is locked.
        See Also:
        Constant Field Values
      • CMERROR_BOX_DAMAGED

        public static final int CMERROR_BOX_DAMAGED
        Error code 74: The CmDongle is damaged. Please contact the support.
        See Also:
        Constant Field Values
      • CMERROR_BOX_LOCKED_TO

        public static final int CMERROR_BOX_LOCKED_TO
        Error code 75: The CmDongle is locked.
        See Also:
        Constant Field Values
      • CMERROR_MAINTENANCEPERIODMISSING

        public static final int CMERROR_MAINTENANCEPERIODMISSING
        Error code 76: The Maintenance Period is missing.
        See Also:
        Constant Field Values
      • CMERROR_MAINTENANCEPERIODUNDERRUN

        public static final int CMERROR_MAINTENANCEPERIODUNDERRUN
        Error code 77: The Release Date is out of range.
        See Also:
        Constant Field Values
      • CMERROR_MAINTENANCEPERIODOVERRUN

        public static final int CMERROR_MAINTENANCEPERIODOVERRUN
        Error code 78: The Release Date is out of range.
        See Also:
        Constant Field Values
      • CMERROR_MAINTENANCEPERIODINVALID

        public static final int CMERROR_MAINTENANCEPERIODINVALID
        Error code 79: The Maintenance Period is invalid.
        See Also:
        Constant Field Values
      • CMERROR_BOXMEMORYDAMAGED

        public static final int CMERROR_BOXMEMORYDAMAGED
        Error code 80: A general part of the CmDongle memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_BOSSMEMORY_DAMAGED

        public static final int CMERROR_BOSSMEMORY_DAMAGED
        Error code 81: The BOSS memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_FIRMWAREMEMORY_DAMAGED

        public static final int CMERROR_FIRMWAREMEMORY_DAMAGED
        Error code 82: The Firmware memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_BOSS_FIRMWAREMEMORY_DAMAGED

        public static final int CMERROR_BOSS_FIRMWAREMEMORY_DAMAGED
        Error code 83: The BOSS and Firmware memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_FUMMEMORY_DAMAGED

        public static final int CMERROR_FUMMEMORY_DAMAGED
        Error code 84: The FUM memory is damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_BOSS_FUMMEMORY_DAMAGED

        public static final int CMERROR_BOSS_FUMMEMORY_DAMAGED
        Error code 85: The BOSS and FUM memory are damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_FIRMWARE_FUMMEMORY_DAMAGED

        public static final int CMERROR_FIRMWARE_FUMMEMORY_DAMAGED
        Error code 86: The Firmware and FUM memory are damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_BOSS_FIRMWARE_FUMMEMORY_DAMAGED

        public static final int CMERROR_BOSS_FIRMWARE_FUMMEMORY_DAMAGED
        Error code 87: The BOSS, Firmware and FUM memory are damaged (CRC error).
        See Also:
        Constant Field Values
      • CMERROR_SYSTIMEOBSOLETE

        public static final int CMERROR_SYSTIMEOBSOLETE
        Error code 88: The System Time is not set by the CodeMeter Host Service.
        See Also:
        Constant Field Values
      • CMERROR_BAD_IO_MODE

        public static final int CMERROR_BAD_IO_MODE
        Error code 89: Wrong communication mode with CmDongle is used (see UseUmsDa).
        See Also:
        Constant Field Values
      • CMERROR_FUNCTIONLIMITREACHED

        @Deprecated
        public static final int CMERROR_FUNCTIONLIMITREACHED
        Deprecated.
        use CMERROR_FULA_UPDATEEB_REACHED instead
        See Also:
        Constant Field Values
      • CMERROR_FULA_UPDATEEB_REACHED

        public static final int CMERROR_FULA_UPDATEEB_REACHED
        Error code 90: The limit for using the password function has been reached.
        See Also:
        Constant Field Values
      • CMERROR_FULA_ENCRCOMM_REACHED

        public static final int CMERROR_FULA_ENCRCOMM_REACHED
        Error code 91: The limit for using the communication function has been reached.
        See Also:
        Constant Field Values
      • CMERROR_UNFRAMED_COMMAND_REJECTED

        public static final int CMERROR_UNFRAMED_COMMAND_REJECTED
        Error code 92: An error occurred at the communication level. CmDongle version is too old.
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_PARTIALLY_REJECTED

        public static final int CMERROR_COMMAND_PARTIALLY_REJECTED
        Error code 93: An error occurred at the communication level. CmDongle version is too old.
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_PARTIALLY_UNSUPPORTED

        public static final int CMERROR_COMMAND_PARTIALLY_UNSUPPORTED
        Error code 94: An error occurred at the communication level. CmDongle version is too old.
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_95

        public static final int CMERROR_BOX_COMMUNICATION_95
        Error code 95: An error occurred at the communication level.
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_96

        public static final int CMERROR_BOX_COMMUNICATION_96
        Error code 96: An error occurred at the communication level.
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_97

        public static final int CMERROR_BOX_COMMUNICATION_97
        Error code 97: An error occurred at the communication level.
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_98

        public static final int CMERROR_BOX_COMMUNICATION_98
        Error code 98: An error occurred at the communication level.
        See Also:
        Constant Field Values
      • CMERROR_BOX_LICENSEMEMORY_NOT_FORMATTED

        public static final int CMERROR_BOX_LICENSEMEMORY_NOT_FORMATTED
        Error code 99: The license memory of CmDongle is not formatted.
        See Also:
        Constant Field Values
      • CMERROR_NETWORK_FAULT

        public static final int CMERROR_NETWORK_FAULT
        Error code 100: A network error occurred.
        See Also:
        Constant Field Values
      • CMERROR_SERVER_NOT_FOUND

        public static final int CMERROR_SERVER_NOT_FOUND
        Error code 101: CodeMeter License Server not found.
        See Also:
        Constant Field Values
      • CMERROR_SEND_FAULT

        public static final int CMERROR_SEND_FAULT
        Error code 102: The request cannot be sent to another CodeMeter License Server.
        See Also:
        Constant Field Values
      • CMERROR_RECEIVE_FAULT

        public static final int CMERROR_RECEIVE_FAULT
        Error code 103: The answer from another CodeMeter License Server cannot be received.
        See Also:
        Constant Field Values
      • CMERROR_INTERNAL_ORGANISATION

        public static final int CMERROR_INTERNAL_ORGANISATION
        Error code 104: An internal error occurred.
        See Also:
        Constant Field Values
      • CMERROR_INVALID_PARAMETER

        public static final int CMERROR_INVALID_PARAMETER
        Error code 105: The specified parameter is invalid.
        See Also:
        Constant Field Values
      • CMERROR_INVALID_HANDLE

        public static final int CMERROR_INVALID_HANDLE
        Error code 106: An invalid handle was specified.
        See Also:
        Constant Field Values
      • CMERROR_NO_MORE_HANDLES

        public static final int CMERROR_NO_MORE_HANDLES
        Error code 107: No more handles are available.
        See Also:
        Constant Field Values
      • CMERROR_NO_MORE_MEMORY

        public static final int CMERROR_NO_MORE_MEMORY
        Error code 108: There is not enough memory available in CodeMeter.
        See Also:
        Constant Field Values
      • CMERROR_SECURITY_PROBLEM

        public static final int CMERROR_SECURITY_PROBLEM
        Error code 109: The exchange of a communication key failed.
        See Also:
        Constant Field Values
      • CMERROR_NO_LOCAL_SERVER_STARTED

        public static final int CMERROR_NO_LOCAL_SERVER_STARTED
        Error code 110: No local CodeMeter License Server is started.
        See Also:
        Constant Field Values
      • CMERROR_NO_NETWORK_SERVER

        public static final int CMERROR_NO_NETWORK_SERVER
        Error code 111: CodeMeter License Server is not a network server.
        See Also:
        Constant Field Values
      • CMERROR_BUFFER_OVERFLOW

        public static final int CMERROR_BUFFER_OVERFLOW
        Error code 112: The data area passed to the CodeMeter driver is too small.
        See Also:
        Constant Field Values
      • CMERROR_BAD_ADDRESS

        public static final int CMERROR_BAD_ADDRESS
        Error code 113: The given memory address is invalid.
        See Also:
        Constant Field Values
      • CMERROR_BAD_HANDLE

        public static final int CMERROR_BAD_HANDLE
        Error code 114: The given handle is invalid.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_HANDLE_TYPE

        public static final int CMERROR_WRONG_HANDLE_TYPE
        Error code 115: The given handle is of wrong type.
        See Also:
        Constant Field Values
      • CMERROR_UNDEFINED_SYSTEM_HANDLE

        public static final int CMERROR_UNDEFINED_SYSTEM_HANDLE
        Error code 116: The given handle specifies an undefined subsystem.
        See Also:
        Constant Field Values
      • CMERROR_NO_EVENT_OCCURRED

        public static final int CMERROR_NO_EVENT_OCCURRED
        Error code 117: There is no event set.
        See Also:
        Constant Field Values
      • CMERROR_CTCS_FAULT

        public static final int CMERROR_CTCS_FAULT
        Error code 118: The communication with the given Certified Time Server failed.
        See Also:
        Constant Field Values
      • CMERROR_UNKNOWN_OS

        public static final int CMERROR_UNKNOWN_OS
        Error code 119: The current operating system is unknown.
        See Also:
        Constant Field Values
      • CMERROR_NO_SECURITY_OBJECT

        public static final int CMERROR_NO_SECURITY_OBJECT
        Error code 120: There is no security module available.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_SECURITY_OBJECT

        public static final int CMERROR_WRONG_SECURITY_OBJECT
        Error code 121: The security module is of wrong type.
        See Also:
        Constant Field Values
      • CMERROR_NO_FSB_FUNCTIONALITY

        public static final int CMERROR_NO_FSB_FUNCTIONALITY
        Error code 122: CmDongle has no FSB functionality.
        See Also:
        Constant Field Values
      • CMERROR_NO_CTSB_FUNCTIONALITY

        public static final int CMERROR_NO_CTSB_FUNCTIONALITY
        Error code 123: CmDongle has no CTSB functionality.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_OEMID

        public static final int CMERROR_WRONG_OEMID
        Error code 124: CmDongle has not the correct OEM ID to execute the command.
        See Also:
        Constant Field Values
      • CMERROR_SERVER_VERSION_TOO_OLD

        public static final int CMERROR_SERVER_VERSION_TOO_OLD
        Error code 125: The version of the connected CodeMeter License Server is too old.
        See Also:
        Constant Field Values
      • CMERROR_SUBSYSTEM_NOT_AVAILABLE

        @Deprecated
        public static final int CMERROR_SUBSYSTEM_NOT_AVAILABLE
        Deprecated.
        Error code 126: The required subsystem (i.e. library) is not available.
        See Also:
        Constant Field Values
      • CMERROR_LIBRARY_NOT_FOUND

        public static final int CMERROR_LIBRARY_NOT_FOUND
        The required subsystem (i.e. library) is not available, Error 126).
        See Also:
        Constant Field Values
      • CMERROR_HANDLE_INCONSISTENCY

        public static final int CMERROR_HANDLE_INCONSISTENCY
        Error code 127: Handle between CodeMeter client and server is inconsistent.
        See Also:
        Constant Field Values
      • CMERROR_LICENSE_TYPE_CMACT_DEACTIVATED

        public static final int CMERROR_LICENSE_TYPE_CMACT_DEACTIVATED
        Error code 128: Using CmActLicenses is deactivated.
        See Also:
        Constant Field Values
      • CMERROR_USER_RUNTIME_VERSION_TOO_OLD

        public static final int CMERROR_USER_RUNTIME_VERSION_TOO_OLD
        Error code 129: Runtime Version at user site is too old.
        See Also:
        Constant Field Values
      • CMERROR_REDUNDANCY_SERVER_MISSING

        public static final int CMERROR_REDUNDANCY_SERVER_MISSING
        Error code 130: Increased access reliability (triple mode redundancy) for this license does not work, if no matching license on another CodeMeter License Server is available.
        See Also:
        Constant Field Values
      • CMERROR_TRANSFER_BUFFER_OVERFLOW

        public static final int CMERROR_TRANSFER_BUFFER_OVERFLOW
        Error code 131: The data area passed to CodeMeter is too small to receive the results of the License Transfer operation. Results can be fetched by sending the same command again with enough memory.
        See Also:
        Constant Field Values
      • CMERROR_NAMEDUSERCREDENTIALSWRONG

        public static final int CMERROR_NAMEDUSERCREDENTIALSWRONG
        Error code 132: Access was denied. The set credentials of the Named User License do not match, Error 132.
        See Also:
        Constant Field Values
      • CMERROR_REDUNDANCY_SERVER_EXCLUSIVE_MODE

        public static final int CMERROR_REDUNDANCY_SERVER_EXCLUSIVE_MODE
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_NOT_SUPPORTED_BY_TMR

        public static final int CMERROR_COMMAND_NOT_SUPPORTED_BY_TMR
        Error code 134: The specified command is not supported for TMR licenses, Error 134.
        See Also:
        Constant Field Values
      • CMERROR_COMMUNICATION_MODE_NOT_SUPPORTED_IN_TMR_MODE

        public static final int CMERROR_COMMUNICATION_MODE_NOT_SUPPORTED_IN_TMR_MODE
        Error code 135: The used communication mode is not supported in TMR-mode, Error 135.
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_176

        public static final int CMERROR_BOX_COMMUNICATION_176
        Error code 176: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_177

        public static final int CMERROR_BOX_COMMUNICATION_177
        Error code 177: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_178

        public static final int CMERROR_BOX_COMMUNICATION_178
        Error code 178: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_179

        public static final int CMERROR_BOX_COMMUNICATION_179
        Error code 179: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_180

        public static final int CMERROR_BOX_COMMUNICATION_180
        Error code 180: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_181

        public static final int CMERROR_BOX_COMMUNICATION_181
        Error code 181: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_182

        public static final int CMERROR_BOX_COMMUNICATION_182
        Error code 182: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_183

        public static final int CMERROR_BOX_COMMUNICATION_183
        Error code 183: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_184

        public static final int CMERROR_BOX_COMMUNICATION_184
        Error code 184: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_185

        public static final int CMERROR_BOX_COMMUNICATION_185
        Error code 185: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_186

        public static final int CMERROR_BOX_COMMUNICATION_186
        Error code 186: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_187

        public static final int CMERROR_BOX_COMMUNICATION_187
        Error code 187: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_188

        public static final int CMERROR_BOX_COMMUNICATION_188
        Error code 188: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_189

        public static final int CMERROR_BOX_COMMUNICATION_189
        Error code 189: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_190

        public static final int CMERROR_BOX_COMMUNICATION_190
        Error code 190: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_BOX_COMMUNICATION_191

        public static final int CMERROR_BOX_COMMUNICATION_191
        Error code 191: Reserved..
        See Also:
        Constant Field Values
      • CMERROR_I2C_TIMEOUT_REQUEST

        public static final int CMERROR_I2C_TIMEOUT_REQUEST
        Error code 192: Error is sent from USB controller, if a request could not be sent to CodeMeter chip.
        See Also:
        Constant Field Values
      • CMERROR_I2C_TIMEOUT_ANSWER

        public static final int CMERROR_I2C_TIMEOUT_ANSWER
        Error code 193: Error is sent from USB controller, if an answer could not be received from CodeMeter chip.
        See Also:
        Constant Field Values
      • CMERROR_I2C_ANSWER_CRC

        public static final int CMERROR_I2C_ANSWER_CRC
        Error code 194: Error is sent by CodeMeter chip.
        See Also:
        Constant Field Values
      • CMERROR_I2C_TWCOMMAND_INVALID

        public static final int CMERROR_I2C_TWCOMMAND_INVALID
        Error code 195: Error is sent from USB controller to host if protocol version problems appear.
        See Also:
        Constant Field Values
      • CMERROR_I2C_PROTOCOL_VERSION

        public static final int CMERROR_I2C_PROTOCOL_VERSION
        Error code 196: The communication between CmDongle components is wrong.
        See Also:
        Constant Field Values
      • CMERROR_I2C_COMMUNICATION

        public static final int CMERROR_I2C_COMMUNICATION
        Error code 197: Error is sent from USB controller to host if BlockStatus is 0xff or 0x00.
        See Also:
        Constant Field Values
      • CMERROR_I2C_REQUEST_CRC

        public static final int CMERROR_I2C_REQUEST_CRC
        Error code 198: Error is sent by CodeMeter chip.
        See Also:
        Constant Field Values
      • CMERROR_I2C_ANSWER_BEFORE_REQUEST

        public static final int CMERROR_I2C_ANSWER_BEFORE_REQUEST
        Error code 199: An answer request is received before a command request has been previously sent.
        See Also:
        Constant Field Values
      • CMERROR_ENTRY_NOT_FOUND

        public static final int CMERROR_ENTRY_NOT_FOUND
        Error code 200: CmContainer Entry not found.
        See Also:
        Constant Field Values
      • CMERROR_BOX_NOT_FOUND

        public static final int CMERROR_BOX_NOT_FOUND
        Error code 201: CmContainer not found.
        See Also:
        Constant Field Values
      • CMERROR_CRYPTION_FAILED

        public static final int CMERROR_CRYPTION_FAILED
        Error code 202: The en-/decryption of the sequence failed.
        See Also:
        Constant Field Values
      • CMERROR_CRC_VERIFY_FAILED

        public static final int CMERROR_CRC_VERIFY_FAILED
        Error code 203: The checksum verification failed.
        See Also:
        Constant Field Values
      • CMERROR_NO_ENABLING_EXISTS

        public static final int CMERROR_NO_ENABLING_EXISTS
        Error code 204: There is no Enabling Block available.
        See Also:
        Constant Field Values
      • CMERROR_NO_PIO_SET

        public static final int CMERROR_NO_PIO_SET
        Error code 205: No Product Item Option set for creating a creation sequence.
        See Also:
        Constant Field Values
      • CMERROR_FIRMKEY_TOO_SHORT

        public static final int CMERROR_FIRMKEY_TOO_SHORT
        Error code 206: The given Firm Key is too short.
        See Also:
        Constant Field Values
      • CMERROR_NO_BOXLOCK_NEEDED

        public static final int CMERROR_NO_BOXLOCK_NEEDED
        Error code 207: No CmDongle locking/unlocking needed.
        See Also:
        Constant Field Values
      • CMERROR_BOXLOCK_NOT_CHANGED

        public static final int CMERROR_BOXLOCK_NOT_CHANGED
        Error code 208: The CmContainer lock state is not changed.
        See Also:
        Constant Field Values
      • CMERROR_NO_DATA_AVAILABLE

        public static final int CMERROR_NO_DATA_AVAILABLE
        Error code 209: No dynamic data is available for the specified entry.
        See Also:
        Constant Field Values
      • CMERROR_SIGNEDLIST_FAILED

        public static final int CMERROR_SIGNEDLIST_FAILED
        Error code 210: The signed list cannot be created.
        See Also:
        Constant Field Values
      • CMERROR_VALIDATION_FAILED

        public static final int CMERROR_VALIDATION_FAILED
        Error code 211: The validation of the given sequence failed.
        See Also:
        Constant Field Values
      • CMERROR_NO_MORE_LICENSES

        public static final int CMERROR_NO_MORE_LICENSES
        Error code 212: The user maximum of the CodeMeter license is reached.
        See Also:
        Constant Field Values
      • CMERROR_EXCLUSIVE_MODE_CONFLICT

        public static final int CMERROR_EXCLUSIVE_MODE_CONFLICT
        Error code 213: An exclusive access conflicts with another exclusive access.
        See Also:
        Constant Field Values
      • CMERROR_RESERVEDFI_MISSED

        public static final int CMERROR_RESERVEDFI_MISSED
        Error code 214: No reserved Firm Item available.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_CONTENT

        public static final int CMERROR_WRONG_CONTENT
        Error code 215: The content of the CmContainer is not correct.
        See Also:
        Constant Field Values
      • CMERROR_FIELDUPDATE_FAILED

        public static final int CMERROR_FIELDUPDATE_FAILED
        Error code 216: The calculation for Field Update Activation failed.
        See Also:
        Constant Field Values
      • CMERROR_LICENSEFILE_CREATION_FAILED

        public static final int CMERROR_LICENSEFILE_CREATION_FAILED
        Error code 217: The license file cannot be created.
        See Also:
        Constant Field Values
      • CMERROR_NO_LICENSE_AVAILABLE

        public static final int CMERROR_NO_LICENSE_AVAILABLE
        Error code 218: The license or the license file (CmFirm.wbc) is not available.
        See Also:
        Constant Field Values
      • CMERROR_CONTEXT_FILE_WRITING_FAILED

        public static final int CMERROR_CONTEXT_FILE_WRITING_FAILED
        Error code 219: The remote activation license request context file could not be written.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_FILE_READING_FAILED

        public static final int CMERROR_UPDATE_FILE_READING_FAILED
        Error code 220: The remote activation license update file could not be read.
        See Also:
        Constant Field Values
      • CMERROR_NETINFO_FAILED

        public static final int CMERROR_NETINFO_FAILED
        Error code 221: No network license information available.
        See Also:
        Constant Field Values
      • CMERROR_FIELDUPDATE_RESET_FAILED

        public static final int CMERROR_FIELDUPDATE_RESET_FAILED
        Error code 222: An USB reset is required to finish the field update.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_ACCESS_MODE

        public static final int CMERROR_WRONG_ACCESS_MODE
        Error code 223: The used Access Mode conflicts with the set Encryption Code Option.
        See Also:
        Constant Field Values
      • CMERROR_WRONG_BOX_VERSION

        public static final int CMERROR_WRONG_BOX_VERSION
        Error code 224: The addressed CmContainer has an invalid Firmware Version, e.g. too old.
        See Also:
        Constant Field Values
      • CMERROR_INVALID_LICENSE_PARAMETER

        public static final int CMERROR_INVALID_LICENSE_PARAMETER
        Error code 225: The CmDongle license is invalid.
        See Also:
        Constant Field Values
      • CMERROR_BORROW_LICENSE_FAILED

        public static final int CMERROR_BORROW_LICENSE_FAILED
        Error Code 226: An error during blocking a borrowing license has occurred.
        See Also:
        Constant Field Values
      • CMERROR_BORROW_LICENSE_ISENABLED

        public static final int CMERROR_BORROW_LICENSE_ISENABLED
        Error code 227: The borrowed license at the client side is still enabled.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_TOO_NEW

        public static final int CMERROR_UPDATE_TOO_NEW
        Error Code 228: Update could not be imported. A previous update is missing.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_TOO_OLD

        public static final int CMERROR_UPDATE_TOO_OLD
        Error code 229: Update could not be imported. Content of the CmContainer is newer than the update.
        See Also:
        Constant Field Values
      • CMERROR_SEVERAL_REASONS

        public static final int CMERROR_SEVERAL_REASONS
        Error Code 230: The command failed due to several reasons.
        See Also:
        Constant Field Values
      • CMERROR_ACCESS_DENIED

        public static final int CMERROR_ACCESS_DENIED
        Error Code 231: The access was denied.
        See Also:
        Constant Field Values
      • CMERROR_BORROW_TIMEDIFFTOOLARGE

        public static final int CMERROR_BORROW_TIMEDIFFTOOLARGE
        Error code 232: The system time difference between client and server is too large.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_FAILED

        public static final int CMERROR_UPDATE_FAILED
        Error code 233: The remote update failed due to several reasons.
        See Also:
        Constant Field Values
      • CMERROR_UPDATE_ABORTED

        public static final int CMERROR_UPDATE_ABORTED
        Error code 234: Some remote update actions were skipped because an earlier step failed.
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_PENDING

        public static final int CMERROR_COMMAND_PENDING
        Error code 235: Command still pending.
        See Also:
        Constant Field Values
      • CMERROR_NO_WAN_LICENSE

        public static final int CMERROR_NO_WAN_LICENSE
        Error code 236: Access over WAN is not allowed for this license.
        See Also:
        Constant Field Values
      • CMERROR_CMWAN_CREDENTIALS_CHANGED

        public static final int CMERROR_CMWAN_CREDENTIALS_CHANGED
        Error code 237: A connection to the target server with this username is already established. The new login attempt uses a different password.
        See Also:
        Constant Field Values
      • CMERROR_SERVER_START_PENDING

        public static final int CMERROR_SERVER_START_PENDING
        Error code 238: CodeMeter License Server start is still pending.
        See Also:
        Constant Field Values
      • CMERROR_REMOTE_ACCESS_DENIED

        public static final int CMERROR_REMOTE_ACCESS_DENIED
        Error code 239: Remote access is not allowed for this license.
        See Also:
        Constant Field Values
      • CMERROR_CHIP_INCOMPATIBLE

        public static final int CMERROR_CHIP_INCOMPATIBLE
        See Also:
        Constant Field Values
      • CMERROR_FIELDUPDATE_DONGLE_FILE_MISFIT

        public static final int CMERROR_FIELDUPDATE_DONGLE_FILE_MISFIT
        See Also:
        Constant Field Values
      • CMERROR_FIELDUPDATE_INCOMPLETE

        public static final int CMERROR_FIELDUPDATE_INCOMPLETE
        See Also:
        Constant Field Values
      • CMERROR_INTERNAL

        public static final int CMERROR_INTERNAL
        Error code 254: Internal CmContainer error.
        See Also:
        Constant Field Values
      • CMERROR_UNKNOWN

        public static final int CMERROR_UNKNOWN
        Error code 255: Unknown CmContainer error.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_SUBSYSTEM_FAILED

        public static final int CMERROR_CMACT_SUBSYSTEM_FAILED
        Error code 260: An internal error occurred (CmActLicense).
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_NOT_ACTIVATED

        public static final int CMERROR_CMACT_LICENSE_NOT_ACTIVATED
        Error code 261: The CmActLicense license is not yet activated.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_ALREADY_ACTIVATED

        public static final int CMERROR_CMACT_LICENSE_ALREADY_ACTIVATED
        Error code 262: The CmActLicense was already activated on this system. It can be activated only once.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_REACTIVATION_REQUIRED

        public static final int CMERROR_CMACT_LICENSE_REACTIVATION_REQUIRED
        Error code 263: The CmActLicense license has to be activated again.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_INVALID

        public static final int CMERROR_CMACT_LICENSE_INVALID
        Error code 264: The CmActLicense license is invalid.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_COMMAND_NOT_SUPPORTED

        public static final int CMERROR_CMACT_COMMAND_NOT_SUPPORTED
        Error code 265: This command is invalid for CmActLicense licenses.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_LICENSE_ALREADY_EXISTS

        public static final int CMERROR_CMACT_LICENSE_ALREADY_EXISTS
        Error code 266: A matching CmActLicense license already exists.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_RUN_AS_SERVICE_REQUIRED

        public static final int CMERROR_CMACT_RUN_AS_SERVICE_REQUIRED
        Error code 267: For CmActLicense the CodeMeter License Server must run as a service.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_BINDING_NOT_POSSIBLE

        public static final int CMERROR_CMACT_BINDING_NOT_POSSIBLE
        Error code 268: CmActLicense cannot bind the license to this machine.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_OPEN_FIRMITEM_TEMPLATE_FAILED

        public static final int CMERROR_CMACT_OPEN_FIRMITEM_TEMPLATE_FAILED
        Error code 269: CodeMeter cannot open the file containing the Firm Item template for CmActLicense.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_OSVERSION_NOT_PERMITTED

        public static final int CMERROR_CMACT_OSVERSION_NOT_PERMITTED
        Error code 270: It is not permitted to use this CmActLicense with this operating system version.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_HOST_ID_NOT_AVAILABLE

        public static final int CMERROR_CMACT_HOST_ID_NOT_AVAILABLE
        Error code 271: CodeMeter cannot find the property required for the CmActLicense binding.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_PLUGIN_MALFUNCTION

        public static final int CMERROR_CMACT_PLUGIN_MALFUNCTION
        Error Code 272: A severe error occurred in a plugin.
        See Also:
        Constant Field Values
      • CMERROR_CMACT_VIRTUAL_MACHINE_NOT_ALLOWED

        public static final int CMERROR_CMACT_VIRTUAL_MACHINE_NOT_ALLOWED
        Error code 273: It is not permitted to use this license on a virtual machine.
        See Also:
        Constant Field Values
      • CMERROR_INCOMPATIBLE_SYSTEM_SOFTWARE_FOUND

        public static final int CMERROR_INCOMPATIBLE_SYSTEM_SOFTWARE_FOUND
        Error code 274: Some incompatible system software has been found.
        See Also:
        Constant Field Values
      • CMERROR_ERRORTEXT_NOT_FOUND

        public static final int CMERROR_ERRORTEXT_NOT_FOUND
        Error code 300: The Error Text belonging to the set Error Code %1 is not available.
        See Also:
        Constant Field Values
      • CMERROR_SEND_PROTECTION_FAILED

        public static final int CMERROR_SEND_PROTECTION_FAILED
        Error code 301: The request to CodeMeter License Server cannot be encrypted.
        See Also:
        Constant Field Values
      • CMERROR_ANALYSING_DETECTED

        public static final int CMERROR_ANALYSING_DETECTED
        Error code 302: The en-/decryption of the communication failed.
        See Also:
        Constant Field Values
      • CMERROR_COMMAND_EXECUTION_FAILED

        public static final int CMERROR_COMMAND_EXECUTION_FAILED
        Error code 303: The execution of the API function failed.
        See Also:
        Constant Field Values
      • CMERROR_FUNCTION_NOT_IMPLEMENTED

        public static final int CMERROR_FUNCTION_NOT_IMPLEMENTED
        Error code 304: The API function is not implemented.
        See Also:
        Constant Field Values
      • CMERROR_OBSOLETE_FUNCTION

        public static final int CMERROR_OBSOLETE_FUNCTION
        Error code 305: The API function is not supported any more.
        See Also:
        Constant Field Values
      • CMERROR_FUNCTION_NOT_SUPPORTED

        public static final int CMERROR_FUNCTION_NOT_SUPPORTED
        Error code 306: The requested function is not supported.
        See Also:
        Constant Field Values
      • CMERROR_EXCEPTION_CAUGHT

        public static final int CMERROR_EXCEPTION_CAUGHT
        Error code 307: Command processing terminated because an unexpected exception occurred.
        See Also:
        Constant Field Values
      • CMERROR_VERIFY_FAILED

        public static final int CMERROR_VERIFY_FAILED
        The written data couldn't be verified, Error 308.
        See Also:
        Constant Field Values
      • CMERROR_REQUEST_OVERLOAD_REJECTED

        public static final int CMERROR_REQUEST_OVERLOAD_REJECTED
        Due to an overload of CodeMeter License Server the license access could not be processed in time and thus has been rejected, Error 309.
        See Also:
        Constant Field Values
      • CMERROR_TIME_CONVERSION

        public static final int CMERROR_TIME_CONVERSION
        Error code 310: Wrong time conversion is used.
        See Also:
        Constant Field Values
      • CMERROR_OPERATION_NOT_SUPPORTED_FOR_UNIVERSAL_LICENSE

        public static final int CMERROR_OPERATION_NOT_SUPPORTED_FOR_UNIVERSAL_LICENSE
        Error code 311: The current operation is not supported for universal licenses.
        See Also:
        Constant Field Values
      • CMERROR_INTERNAL_COMMAND_FAILED

        public static final int CMERROR_INTERNAL_COMMAND_FAILED
        Error code 312: Internal Error occurred.
        See Also:
        Constant Field Values
      • CMERROR_CM_LIB_NOT_INITIALIZED

        public static final int CMERROR_CM_LIB_NOT_INITIALIZED
        Error code 313: The CodeMeter library has not been initialized before first using the API.
        See Also:
        Constant Field Values
      • CMERROR_BOX_ASN1_DECODER_FAILED

        public static final int CMERROR_BOX_ASN1_DECODER_FAILED
        See Also:
        Constant Field Values
      • CMERROR_BOX_ASN1_SIGNATURE_FAILED

        public static final int CMERROR_BOX_ASN1_SIGNATURE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_BOX_ASN1_ENCRYPT_DECRYPT_FAILED

        public static final int CMERROR_BOX_ASN1_ENCRYPT_DECRYPT_FAILED
        See Also:
        Constant Field Values
      • CMERROR_BOX_ASN1_INPUT_BUFFER_MISMATCH

        public static final int CMERROR_BOX_ASN1_INPUT_BUFFER_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_BOX_LT_ONLY_RESTRICTED_BCIS_ALLOWED

        public static final int CMERROR_BOX_LT_ONLY_RESTRICTED_BCIS_ALLOWED
        See Also:
        Constant Field Values
      • CMERROR_BOX_MAX_ENC_RATE_REACHED

        public static final int CMERROR_BOX_MAX_ENC_RATE_REACHED
        Error code 711: The Maximum Encryption Rate has been reached, encryption currently not possible.
        See Also:
        Constant Field Values
      • CMERROR_BOX_ENC_RATE_NO_RESOURCES

        public static final int CMERROR_BOX_ENC_RATE_NO_RESOURCES
        Error code 712: No more resources available for using encryption with PIO Maximum Encryption Rate.
        See Also:
        Constant Field Values
      • CMERROR_DONGLE_FUNCTIONS_RESTRICTED

        public static final int CMERROR_DONGLE_FUNCTIONS_RESTRICTED
        See Also:
        Constant Field Values
      • CMERROR_BOX_INTEGRITY_ERROR

        public static final int CMERROR_BOX_INTEGRITY_ERROR
        Error code 730: The integrity check on CmDongle failed. This CmDongle is defect and has to be replaced.
        See Also:
        Constant Field Values
      • CMERROR_BOX_INTEGRITY_WARNING

        public static final int CMERROR_BOX_INTEGRITY_WARNING
        Error code 731: The integrity check on CmDongle returned warnings. The CmDongle may become defect in the near future. It is recommended to replace this CmDongle.
        See Also:
        Constant Field Values
      • CMERROR_BOX_REPORT1_TYPE2_UNSUPPORTED

        public static final int CMERROR_BOX_REPORT1_TYPE2_UNSUPPORTED
        Error code 780: The dongle has sent data in an unexpected format (HID protocol).
        See Also:
        Constant Field Values
      • CMERROR_LT_READ_LIF_FAILED

        public static final int CMERROR_LT_READ_LIF_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_READ_LIF_DECODE_FAILED

        public static final int CMERROR_LT_READ_LIF_DECODE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_READ_LIF_VALIDATE_FAILED

        public static final int CMERROR_LT_READ_LIF_VALIDATE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_READ_LIF_CONTENT_FAILED

        public static final int CMERROR_LT_READ_LIF_CONTENT_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CREATE_FILES_CERTIFICATE_NOT_FOUND

        public static final int CMERROR_LT_CREATE_FILES_CERTIFICATE_NOT_FOUND
        See Also:
        Constant Field Values
      • CMERROR_LT_CREATE_FILES_CALC_SERIAL_FAILED

        public static final int CMERROR_LT_CREATE_FILES_CALC_SERIAL_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CREATE_FILES_CREATE_CERTIFICATE_FAILED

        public static final int CMERROR_LT_CREATE_FILES_CREATE_CERTIFICATE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CREATE_FILES_COMPOSE_LIC_FILE_FAILED

        public static final int CMERROR_LT_CREATE_FILES_COMPOSE_LIC_FILE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CREATE_FILES_COMPOSE_DYN_FILE_FAILED

        public static final int CMERROR_LT_CREATE_FILES_COMPOSE_DYN_FILE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CREATE_FILES_WRITE_LIC_FAILED

        public static final int CMERROR_LT_CREATE_FILES_WRITE_LIC_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CREATE_FILES_WRITE_DYN_FAILED

        public static final int CMERROR_LT_CREATE_FILES_WRITE_DYN_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_LIC_CONTENT_FAILED

        public static final int CMERROR_LT_LOAD_READ_LIC_CONTENT_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_LIF_CONTENT_FAILED

        public static final int CMERROR_LT_LOAD_READ_LIF_CONTENT_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_INVALID_CONTEXT

        public static final int CMERROR_LT_LOAD_INVALID_CONTEXT
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_CALC_CMACTKEY_FAILED

        public static final int CMERROR_LT_LOAD_CALC_CMACTKEY_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_CALC_MAC_FAILED

        public static final int CMERROR_LT_LOAD_CALC_MAC_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_DECRYPT_DYNAMIC_DATA_FAILED

        public static final int CMERROR_LT_LOAD_DECRYPT_DYNAMIC_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_ADD_LIF_DATA_FAILED

        public static final int CMERROR_LT_LOAD_ADD_LIF_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_ADD_LIC_BASE_DATA_FAILED

        public static final int CMERROR_LT_LOAD_ADD_LIC_BASE_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_ADD_DYN_BASE_DATA_FAILED

        public static final int CMERROR_LT_LOAD_ADD_DYN_BASE_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_GET_CONTEXTLIST_FAILED

        public static final int CMERROR_LT_LOAD_GET_CONTEXTLIST_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_GET_FI_FAILED

        public static final int CMERROR_LT_LOAD_GET_FI_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_INVALD_PARAMETER

        public static final int CMERROR_LT_LOAD_INVALD_PARAMETER
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_RESET_FAILED

        public static final int CMERROR_LT_LOAD_RESET_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_GLOBALS_FAILED

        public static final int CMERROR_LT_LOAD_READ_GLOBALS_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_FI_FAILED

        public static final int CMERROR_LT_LOAD_READ_FI_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_PI_FAILED

        public static final int CMERROR_LT_LOAD_READ_PI_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_OPEN_LIC_FAILED

        public static final int CMERROR_LT_LOAD_OPEN_LIC_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_DYN_DATA_MISSING

        public static final int CMERROR_LT_LOAD_DYN_DATA_MISSING
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_OPEN_DYN_DATA_FAILED

        public static final int CMERROR_LT_LOAD_OPEN_DYN_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_BASE_DATA_FAILED

        public static final int CMERROR_LT_LOAD_READ_BASE_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_COLLECT_PIS_FAILED

        public static final int CMERROR_LT_LOAD_COLLECT_PIS_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_MI_FAILED

        public static final int CMERROR_LT_LOAD_READ_MI_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_PLAUSIBILITY_FAILED

        public static final int CMERROR_LT_LOAD_PLAUSIBILITY_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_P_VALIDATE_FAILED

        public static final int CMERROR_LT_LOAD_FI_P_VALIDATE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_P_DECODE_FAILED

        public static final int CMERROR_LT_LOAD_FI_P_DECODE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_P_DECODE_BASE_DATA_FAILED

        public static final int CMERROR_LT_LOAD_FI_P_DECODE_BASE_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_P_DECODE_CONFIDENTIAL_FAILED

        public static final int CMERROR_LT_LOAD_FI_P_DECODE_CONFIDENTIAL_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_P_DECODE_DYN_REF_LIST_FAILED

        public static final int CMERROR_LT_LOAD_FI_P_DECODE_DYN_REF_LIST_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_P_DECODE_CONF_REF_LIST_FAILED

        public static final int CMERROR_LT_LOAD_FI_P_DECODE_CONF_REF_LIST_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_T_VALIDATE_FAILED

        public static final int CMERROR_LT_LOAD_FI_T_VALIDATE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_T_DECODE_FAILED

        public static final int CMERROR_LT_LOAD_FI_T_DECODE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_T_DECODE_BASE_DATA_FAILED

        public static final int CMERROR_LT_LOAD_FI_T_DECODE_BASE_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_CONFIDENTIAL_DECRYPT_FAILED

        public static final int CMERROR_LT_LOAD_FI_CONFIDENTIAL_DECRYPT_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_CONFIDENTIAL_DECODE_BASE_DATA_FAILED

        public static final int CMERROR_LT_LOAD_FI_CONFIDENTIAL_DECODE_BASE_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_DYNAMIC_DECRYPT_FAILED

        public static final int CMERROR_LT_LOAD_FI_DYNAMIC_DECRYPT_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_FI_DYNAMIC_DECODE_BASE_DATA_FAILED

        public static final int CMERROR_LT_LOAD_FI_DYNAMIC_DECODE_BASE_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_FI_P_FAILED

        public static final int CMERROR_LT_LOAD_READ_FI_P_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_FI_CONFIDENTIAL_FAILED

        public static final int CMERROR_LT_LOAD_READ_FI_CONFIDENTIAL_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_FI_DYNAMIC_FAILED

        public static final int CMERROR_LT_LOAD_READ_FI_DYNAMIC_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_LOAD_READ_FI_T_FAILED

        public static final int CMERROR_LT_LOAD_READ_FI_T_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_SETUP_CERTIFICATES

        public static final int CMERROR_LT_DOTRANSFER_SETUP_CERTIFICATES
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_UNFINISHED_TRANSFER_FOUND

        public static final int CMERROR_LT_DOTRANSFER_UNFINISHED_TRANSFER_FOUND
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_INSUFFICIENT_NUMBER_OF_UNITS

        public static final int CMERROR_LT_DOTRANSFER_INSUFFICIENT_NUMBER_OF_UNITS
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_INSUFFICIENT_NUMBER_OF_LICENSES

        public static final int CMERROR_LT_DOTRANSFER_INSUFFICIENT_NUMBER_OF_LICENSES
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_TRANSFER_ID_UNKNOWN

        public static final int CMERROR_LT_DOTRANSFER_TRANSFER_ID_UNKNOWN
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_HISTORY_ID_OVERFLOW

        public static final int CMERROR_LT_DOTRANSFER_HISTORY_ID_OVERFLOW
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_TRANSFER_DEPTH

        public static final int CMERROR_LT_DOTRANSFER_TRANSFER_DEPTH
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_TARGET_CMACT_ID_NOT_ALLOWED

        public static final int CMERROR_LT_DOTRANSFER_TARGET_CMACT_ID_NOT_ALLOWED
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_TRANSFER_TYPE_NOT_ALLOWED

        public static final int CMERROR_LT_DOTRANSFER_TRANSFER_TYPE_NOT_ALLOWED
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_HARDWARE_ID_MISMATCH

        public static final int CMERROR_LT_DOTRANSFER_HARDWARE_ID_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_LTUC_MISMATCH

        public static final int CMERROR_LT_DOTRANSFER_LTUC_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_COUNTER_MISMATCH

        public static final int CMERROR_LT_DOTRANSFER_COUNTER_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_FI_TRANSFER_NOT_ALLOWED

        public static final int CMERROR_LT_DOTRANSFER_FI_TRANSFER_NOT_ALLOWED
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_BORROW_EXPIRATION_TIME_TOO_LARGE

        public static final int CMERROR_LT_DOTRANSFER_BORROW_EXPIRATION_TIME_TOO_LARGE
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_BORROW_EXPIRATION_TIME_TOO_SMALL

        public static final int CMERROR_LT_DOTRANSFER_BORROW_EXPIRATION_TIME_TOO_SMALL
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_ALREADY_COMPLETED

        public static final int CMERROR_LT_DOTRANSFER_ALREADY_COMPLETED
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_CREATE_RAU_FAILED

        public static final int CMERROR_LT_DOTRANSFER_CREATE_RAU_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_INVALID_LTK

        public static final int CMERROR_LT_DOTRANSFER_INVALID_LTK
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_PI_T_MISSING

        public static final int CMERROR_LT_DOTRANSFER_PI_T_MISSING
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_TRANSFER_REFERENCE_INVALID

        public static final int CMERROR_LT_DOTRANSFER_TRANSFER_REFERENCE_INVALID
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_TRANSFER_AMOUNT_ERROR

        public static final int CMERROR_LT_DOTRANSFER_TRANSFER_AMOUNT_ERROR
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_INVALID_RAC_CONTENT

        public static final int CMERROR_LT_DOTRANSFER_INVALID_RAC_CONTENT
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_FI_T_MISSING

        public static final int CMERROR_LT_DOTRANSFER_FI_T_MISSING
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_HISTORY_MISMATCH

        public static final int CMERROR_LT_DOTRANSFER_HISTORY_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_FIRM_ITEM_OR_ID_MISSING

        public static final int CMERROR_LT_DOTRANSFER_FIRM_ITEM_OR_ID_MISSING
        See Also:
        Constant Field Values
      • CMERROR_LT_DOTRANSFER_LICENSE_NOT_ENABLED

        public static final int CMERROR_LT_DOTRANSFER_LICENSE_NOT_ENABLED
        See Also:
        Constant Field Values
      • CMERROR_LT_RAU_CONTEXT_INVALID

        public static final int CMERROR_LT_RAU_CONTEXT_INVALID
        See Also:
        Constant Field Values
      • CMERROR_LT_RAU_CONTEXT_PRODUCT_ITEM_FAILURE

        public static final int CMERROR_LT_RAU_CONTEXT_PRODUCT_ITEM_FAILURE
        See Also:
        Constant Field Values
      • CMERROR_LT_RAU_CREATE_ACTION_FAILED

        public static final int CMERROR_LT_RAU_CREATE_ACTION_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_RAU_FIRMITEM_ID_MISMATCH

        public static final int CMERROR_LT_RAU_FIRMITEM_ID_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_CREATE_WBC_FAILED

        public static final int CMERROR_LT_CONTEXT_CREATE_WBC_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_ENCODE_ASN_FAILED

        public static final int CMERROR_LT_CONTEXT_ENCODE_ASN_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_SIGNER_KEY_MISSING

        public static final int CMERROR_LT_CONTEXT_SIGNER_KEY_MISSING
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_KEYCERT_MISMATCH

        public static final int CMERROR_LT_CONTEXT_KEYCERT_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_PKCS7_INIT_FAILED

        public static final int CMERROR_LT_CONTEXT_PKCS7_INIT_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_SIGNING_FAILED

        public static final int CMERROR_LT_CONTEXT_SIGNING_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_CONTENT_SETUP_FAILED

        public static final int CMERROR_LT_CONTEXT_CONTENT_SETUP_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_MISSING_FI_ELEMENT

        public static final int CMERROR_LT_CONTEXT_MISSING_FI_ELEMENT
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_PI_NOT_FOUND

        public static final int CMERROR_LT_CONTEXT_PI_NOT_FOUND
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_LOAD_LICENSE_FAILED

        public static final int CMERROR_LT_CONTEXT_LOAD_LICENSE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_LOAD_LICENSE_DATA_FAILED

        public static final int CMERROR_LT_CONTEXT_LOAD_LICENSE_DATA_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_CONTEXT_UNEXPECTED_LICENSE_STATE

        public static final int CMERROR_LT_CONTEXT_UNEXPECTED_LICENSE_STATE
        See Also:
        Constant Field Values
      • CMERROR_LT_RAR_LICENSE_HAS_NO_FI

        public static final int CMERROR_LT_RAR_LICENSE_HAS_NO_FI
        See Also:
        Constant Field Values
      • CMERROR_LT_RAR_ACT_RECEIPT_CREATION_FAILED

        public static final int CMERROR_LT_RAR_ACT_RECEIPT_CREATION_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_RAR_INVALID_RECEIPT_CONTENT

        public static final int CMERROR_LT_RAR_INVALID_RECEIPT_CONTENT
        See Also:
        Constant Field Values
      • CMERROR_LT_RAR_INVALID_CONTENT_DATA

        public static final int CMERROR_LT_RAR_INVALID_CONTENT_DATA
        See Also:
        Constant Field Values
      • CMERROR_LT_PERSISTENCE_LIC_FILE_INVALID

        public static final int CMERROR_LT_PERSISTENCE_LIC_FILE_INVALID
        See Also:
        Constant Field Values
      • CMERROR_LT_PERSISTENCE_DELETEFILE_FAILED

        public static final int CMERROR_LT_PERSISTENCE_DELETEFILE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_PERSISTENCE_BACKUPFILE_FAILED

        public static final int CMERROR_LT_PERSISTENCE_BACKUPFILE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_PERSISTENCE_REPLACEFILE_FAILED

        public static final int CMERROR_LT_PERSISTENCE_REPLACEFILE_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_PERSISTENCE_INTERNAL_ERROR

        public static final int CMERROR_LT_PERSISTENCE_INTERNAL_ERROR
        See Also:
        Constant Field Values
      • CMERROR_LT_STATUS_DISABLED

        public static final int CMERROR_LT_STATUS_DISABLED
        See Also:
        Constant Field Values
      • CMERROR_LT_STATUS_RETURNED

        public static final int CMERROR_LT_STATUS_RETURNED
        See Also:
        Constant Field Values
      • CMERROR_LT_STATUS_EXPIRED

        public static final int CMERROR_LT_STATUS_EXPIRED
        See Also:
        Constant Field Values
      • CMERROR_LT_LICENSEQUANTITY_TOO_SMALL

        public static final int CMERROR_LT_LICENSEQUANTITY_TOO_SMALL
        See Also:
        Constant Field Values
      • CMERROR_WBCFILE_TYPE_MISMATCH

        public static final int CMERROR_WBCFILE_TYPE_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_LT_BCI_COMMUNICATION_NO_DATA_RETURNED

        public static final int CMERROR_LT_BCI_COMMUNICATION_NO_DATA_RETURNED
        See Also:
        Constant Field Values
      • CMERROR_LT_IMPORTPKCS7CONTAINER_DECODE_CONTAINER_FAILED

        public static final int CMERROR_LT_IMPORTPKCS7CONTAINER_DECODE_CONTAINER_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_IMPORTPKCS7CONTAINER_EXTRACT_ENCRYPT_INFO_FAILED

        public static final int CMERROR_LT_IMPORTPKCS7CONTAINER_EXTRACT_ENCRYPT_INFO_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_IMPORTPKCS7CONTAINER_INVALID_UPDATE_TYPE

        public static final int CMERROR_LT_IMPORTPKCS7CONTAINER_INVALID_UPDATE_TYPE
        See Also:
        Constant Field Values
      • CMERROR_LT_IMPORTPKCS7CONTAINER_DECODE_UPDATE_CONTENT_FAILED

        public static final int CMERROR_LT_IMPORTPKCS7CONTAINER_DECODE_UPDATE_CONTENT_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_IMPORTPKCS7CONTAINER_INAVILD_CONTAINER_TYPE

        public static final int CMERROR_LT_IMPORTPKCS7CONTAINER_INAVILD_CONTAINER_TYPE
        See Also:
        Constant Field Values
      • CMERROR_LT_TEMPLATE_ADDCERTIFICATES_ADD_FAILED

        public static final int CMERROR_LT_TEMPLATE_ADDCERTIFICATES_ADD_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_TEMPLATE_ADDCERTIFICATES_CERTS_MISSING

        public static final int CMERROR_LT_TEMPLATE_ADDCERTIFICATES_CERTS_MISSING
        See Also:
        Constant Field Values
      • CMERROR_LT_TEMPLATE_ENCRYPTANDSIGN_PI_FAILED

        public static final int CMERROR_LT_TEMPLATE_ENCRYPTANDSIGN_PI_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_TEMPLATE_ENCRYPTANDSIGN_FI_FAILED

        public static final int CMERROR_LT_TEMPLATE_ENCRYPTANDSIGN_FI_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_TEMPLATE_RECEIVED_SIZE_MISMATCH

        public static final int CMERROR_LT_TEMPLATE_RECEIVED_SIZE_MISMATCH
        See Also:
        Constant Field Values
      • CMERROR_LT_RECIPIENTINFO_FAILED

        public static final int CMERROR_LT_RECIPIENTINFO_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_EXPORTCERTIFICATES_FAILED

        public static final int CMERROR_LT_EXPORTCERTIFICATES_FAILED
        See Also:
        Constant Field Values
      • CMERROR_LT_NO_PERMISSION_RETURN

        public static final int CMERROR_LT_NO_PERMISSION_RETURN
        See Also:
        Constant Field Values
      • CMERROR_LT_COMMAND_NOT_SUPPORTED

        public static final int CMERROR_LT_COMMAND_NOT_SUPPORTED
        See Also:
        Constant Field Values
      • CMERROR_INVALID_PASSWORD

        public static final int CMERROR_INVALID_PASSWORD
        See Also:
        Constant Field Values
      • CMERROR_SESSION_EXPIRED

        public static final int CMERROR_SESSION_EXPIRED
        See Also:
        Constant Field Values
      • CM_CHALLENGE_LEN

        public static final int CM_CHALLENGE_LEN
        (16) Global definition for the length of the challenge block in byte
        See Also:
        Constant Field Values
      • CM_BLOCK_SIZE

        public static final int CM_BLOCK_SIZE
        (16) Global definition for the length of the cipher block in byte
        See Also:
        Constant Field Values
      • CM_BLOCKCIPHER_KEY_LEN

        public static final int CM_BLOCKCIPHER_KEY_LEN
        (32) Global definition for the length of the cipher key in byte
        See Also:
        Constant Field Values
      • CM_DIGEST_LEN

        public static final int CM_DIGEST_LEN
        (32) Global definition for the length of the digest (i.e. SHA-256) in byte
        See Also:
        Constant Field Values
      • CM_IP_ADDRESS_LEN

        public static final int CM_IP_ADDRESS_LEN
        (8) Global definition for the length of the TCP/IP address in byte
        See Also:
        Constant Field Values
      • CM_PRIVATE_KEY_LEN

        public static final int CM_PRIVATE_KEY_LEN
        (32) Global definition for the length of the private cipher key in byte
        See Also:
        Constant Field Values
      • CM_PUBLIC_KEY_LEN

        public static final int CM_PUBLIC_KEY_LEN
        (64) Global definition for the length of the public cipher key in byte
        See Also:
        Constant Field Values
      • CM_SESSIONID_LEN

        public static final int CM_SESSIONID_LEN
        (8) Global definition for the session-id length in byte
        See Also:
        Constant Field Values
      • CM_TALKKEYINPUT_LEN

        public static final int CM_TALKKEYINPUT_LEN
        (80) Global definition for the length of the talk key in byte
        See Also:
        Constant Field Values
      • CM_TVB_LEN

        public static final int CM_TVB_LEN
        (16) Global definition for the length of the TVB in byte
        See Also:
        Constant Field Values
      • CM_RSA1024_KEY_LEN

        public static final int CM_RSA1024_KEY_LEN
        (128) Global definition for the length of the RSA key in byte
        See Also:
        Constant Field Values
      • CM_MAX_COMPANY_LEN

        public static final int CM_MAX_COMPANY_LEN
        (32) Global definition for the max. length of the company string in byte
        See Also:
        Constant Field Values
      • CM_MAX_STRING_LEN

        public static final int CM_MAX_STRING_LEN
        (256) Global definition for the max. length of strings in byte.
        See Also:
        Constant Field Values
      • CM_MAX_PASSWORD_LEN

        public static final int CM_MAX_PASSWORD_LEN
        (64) Global definition for the max. length of the mantra in byte
        See Also:
        Constant Field Values
      • CMACT_LEN_DEVICE_ID

        public static final int CMACT_LEN_DEVICE_ID
        (64) Global definition for the length of the device id in byte
        See Also:
        Constant Field Values
      • CM_SHA256_DIGEST_LEN

        public static final int CM_SHA256_DIGEST_LEN
        (32) Global definitions (for UVD)
        See Also:
        Constant Field Values
      • CM_ECCSECP224R1_KEY_LEN

        public static final int CM_ECCSECP224R1_KEY_LEN
        See Also:
        Constant Field Values
      • CM_ECCSECP256R1_KEY_LEN

        public static final int CM_ECCSECP256R1_KEY_LEN
        See Also:
        Constant Field Values
      • CM_ECCSECP521R1_KEY_LEN

        public static final int CM_ECCSECP521R1_KEY_LEN
        See Also:
        Constant Field Values
      • CM_GF_FILEBASED

        public static final int CM_GF_FILEBASED
        (0x0000) Global definition flags used in CMBOXENTRY, CMBOXENTRY2, CMCRYPTSIM, CMPIOCK, CMTALKKEYINPUT_USER, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_BOXBASED

        public static final int CM_GF_BOXBASED
        (0x0001) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_TRANSFERBASED

        public static final int CM_GF_TRANSFERBASED
        (0x0001) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SEC_MASK

        public static final long CM_GF_SEC_MASK
        (0x0004) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_FI_RESERVED

        public static final long CM_GF_FI_RESERVED
        (0x8000) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_ADD_FIRMITEM

        public static final long CM_GF_ADD_FIRMITEM
        (0x0000) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_UPDATE_FIRMITEM

        public static final long CM_GF_UPDATE_FIRMITEM
        (0x0001) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_DELETE_FIRMITEM

        public static final long CM_GF_DELETE_FIRMITEM
        (0x0002) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_ADD_PRODUCTITEM

        public static final long CM_GF_ADD_PRODUCTITEM
        (0x0003) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_UPDATE_PRODUCTITEM

        public static final long CM_GF_UPDATE_PRODUCTITEM
        (0x0004) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_DELETE_PRODUCTITEM

        public static final long CM_GF_DELETE_PRODUCTITEM
        (0x0005) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SET_BOXCONTROL

        public static final long CM_GF_SET_BOXCONTROL
        (0x0006) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SET_BOXLOCK

        public static final long CM_GF_SET_BOXLOCK
        (0x0007) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SET_FIRMKEY

        public static final long CM_GF_SET_FIRMKEY
        (0x0008) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SET_USERKEY

        public static final long CM_GF_SET_USERKEY
        (0x0009) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_ADD_ENABLEBLOCK

        public static final long CM_GF_ADD_ENABLEBLOCK
        (0x000a) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_UPDATE_ENABLEBLOCK

        public static final long CM_GF_UPDATE_ENABLEBLOCK
        (0x000b) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_DELETE_ENABLEBLOCK

        public static final long CM_GF_DELETE_ENABLEBLOCK
        (0x000c) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_ATTACH_ENABLEBLOCK

        public static final long CM_GF_ATTACH_ENABLEBLOCK
        (0x000d) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_DETACH_ENABLEBLOCK

        public static final long CM_GF_DETACH_ENABLEBLOCK
        (0x000e) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SET_ENABLEBLOCK

        public static final long CM_GF_SET_ENABLEBLOCK
        (0x0011) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_ENABLEITEM

        public static final long CM_GF_ENABLEITEM
        (0x0012) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_DISABLEITEM

        public static final long CM_GF_DISABLEITEM
        (0x0013e) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_TEMPENABLEITEM

        public static final long CM_GF_TEMPENABLEITEM
        (0x0014) Global definition flags used in flCtrl for CmCreateSequence() and CmProgram()
        See Also:
        Constant Field Values
      • CM_GF_SET_BOXPASSWORD

        @Deprecated
        public static final long CM_GF_SET_BOXPASSWORD
        Deprecated.
        use CM_GF_SET_BOXPASSWORD2 instead
        (0x002f) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_CHANGE_BOXPASSWORD

        public static final long CM_GF_CHANGE_BOXPASSWORD
        (0x003f) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_RESET_BOXPASSWORD

        public static final long CM_GF_RESET_BOXPASSWORD
        (0x004f) Global definition flags
        See Also:
        Constant Field Values
      • CM_GF_UPDATECHECKOUT_BORROW

        public static final long CM_GF_UPDATECHECKOUT_BORROW
        (0x005f)
        See Also:
        Constant Field Values
      • CM_GF_CHANGE_BOXPASSWORD_M

        @Deprecated
        public static final long CM_GF_CHANGE_BOXPASSWORD_M
        Deprecated.
        For internal use only!
        See Also:
        Constant Field Values
      • CM_GF_SET_BOXPASSWORD2

        public static final long CM_GF_SET_BOXPASSWORD2
        (0x006f) Global definition flags
        See Also:
        Constant Field Values
      • CM_GF_SETUP_ACT_LICENSE

        public static final long CM_GF_SETUP_ACT_LICENSE
        (0x0011) Global definition flags
        See Also:
        Constant Field Values
      • CM_GF_ITEM_MASK

        public static final long CM_GF_ITEM_MASK
        (0x007f) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_PRODUCTCODE

        public static final long CM_GF_PRODUCTCODE
        (0x0001) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_FEATUREMAP

        public static final long CM_GF_FEATUREMAP
        (0x0002) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_EXPTIME

        public static final long CM_GF_EXPTIME
        (0x0004) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_ACTTIME

        public static final long CM_GF_ACTTIME
        (0x0008) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_UNITCOUNTER

        public static final long CM_GF_UNITCOUNTER
        (0x0010) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_PROTDATA

        public static final long CM_GF_PROTDATA
        (0x0020) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_EXTPROTDATA

        public static final long CM_GF_EXTPROTDATA
        (0x0040) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_HIDDENDATA

        public static final long CM_GF_HIDDENDATA
        (0x0080) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SECRETDATA

        public static final long CM_GF_SECRETDATA
        (0x0100) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_USERDATA

        public static final long CM_GF_USERDATA
        (0x0200) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_TEXT

        public static final long CM_GF_TEXT
        (0x0400) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_USAGEPERIOD

        public static final long CM_GF_USAGEPERIOD
        (0x0800) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_LICENSEQUANTITY

        public static final long CM_GF_LICENSEQUANTITY
        Flag in CMBOXENTRY (0x1000) number of licenses in a borrow server entry.
        See Also:
        Constant Field Values
      • CM_GF_BORROWCLIENT

        public static final long CM_GF_BORROWCLIENT
        Flag in CMBOXENTRY (0x2000) specifies that the Product Item is a client borrowing license
        See Also:
        Constant Field Values
      • CM_GF_BORROWSERVER

        public static final long CM_GF_BORROWSERVER
        Flag in CMBOXENTRY (0x4000) specifies that the Product Item is a server borrowing license.
        See Also:
        Constant Field Values
      • CM_GF_COLI

        public static final long CM_GF_COLI
        Customer Owned License Information (COLI) flag for CMBOXENTRY::setPios
        See Also:
        Constant Field Values
      • CM_GF_PIO_MASK

        public static final long CM_GF_PIO_MASK
        (0x0fff) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMTALKKEYINPUT_USER, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_DATA

        public static final long CM_GF_DATA
        (0x0001) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_FUC

        public static final long CM_GF_FUC
        (0x0002) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_GF_SERIAL

        public static final long CM_GF_SERIAL
        (0x0004) Global definition flags used in CMBOXENTRY, CMCRYPTSIM, CMPIOCK, CMPROGRAM_ADD_FIRMITEM, CMINTERNALENTRYINFO, CMCREATEITEM
        See Also:
        Constant Field Values
      • CM_VERSION1

        @Deprecated
        public static final long CM_VERSION1
        Deprecated.
        (0x00000000) Global definitions for the algorithm flag of the CmContainer used in class CMACCESS
        See Also:
        Constant Field Values
      • CM_ACCESS_USERLIMIT

        public static final long CM_ACCESS_USERLIMIT
        (0x00000000) Global definitions for the kind of access (used in CMACCESS). CM_ACCESS_USERLIMIT needs a license for each CmAccess() call. The License Quantity will be decreased by one at each access.
        See Also:
        Constant Field Values
      • CM_ACCESS_NOUSERLIMIT

        public static final long CM_ACCESS_NOUSERLIMIT
        (0x00000100) Global definitions for the kind of access (used in CMACCESS). CM_ACCESS_NOUSERLIMIT needs no license for each CmAccess() call. The License Quantity will not be decreased in this mode.
        See Also:
        Constant Field Values
      • CM_ACCESS_EXCLUSIVE

        public static final long CM_ACCESS_EXCLUSIVE
        (0x00000200) Global definitions for the kind of access (used in CMACCESS). CM_ACCESS_EXCLUSIVE needs a license for each CmAccess() call and on a computer only one access to the specified entry is permitted. The License Quantity will be decreased by one at each access.
        See Also:
        Constant Field Values
      • CM_ACCESS_STATIONSHARE

        public static final long CM_ACCESS_STATIONSHARE
        (0x00000300) Global definitions for the kind of access (used in CMACCESS). CM_ACCESS_STATIONSHARE needs a license for each CmAccess() call and on a computer only one license to the specified entry is blocked. The License Quantity will be decreased by one once per computer.
        See Also:
        Constant Field Values
      • CM_ACCESS_CONVENIENT

        public static final long CM_ACCESS_CONVENIENT
        (0x00000400) Global definitions for the kind of access (used in CMACCESS). CM_ACCESS_CONVENIENT doesn't require a license in the local subsystem (CmLocal) (works here as CM_ACCESS_NOUSERLIMIT), but requires one license per access in the network (CmLAN) (works here as CM_ACCESS_USERLIMIT).
        See Also:
        Constant Field Values
      • CM_ACCESS_STRUCTMASK

        public static final long CM_ACCESS_STRUCTMASK
        (0x00000700) Global definitions for the kind of access (used in CMACCESS)
        See Also:
        Constant Field Values
      • CM_ACCESS_FORCE

        public static final long CM_ACCESS_FORCE
        (0x00010000) Global definitions to do no validation check of the entry data (used in CMACCESS(
        See Also:
        Constant Field Values
      • CM_ACCESS_CHECK_FSB

        public static final long CM_ACCESS_CHECK_FSB
        (0x00020000) constant for searching a fitting FSB entry
        See Also:
        Constant Field Values
      • CM_ACCESS_CHECK_CTSB

        public static final long CM_ACCESS_CHECK_CTSB
        (0x00040000) constant for searching a fitting CTSB entry
        See Also:
        Constant Field Values
      • CM_ACCESS_SUBSYSTEM

        public static final long CM_ACCESS_SUBSYSTEM
        (0x00080000) allow normal subsystem access if no CmContainer is found.
        See Also:
        Constant Field Values
      • CM_ACCESS_FIRMITEM

        public static final long CM_ACCESS_FIRMITEM
        (0x00100000) force FI access to prevent access to a FC:PC=x:0
        See Also:
        Constant Field Values
      • CM_ACCESS_BORROW_ACCESS

        public static final long CM_ACCESS_BORROW_ACCESS
        flag access to borrow license
        See Also:
        Constant Field Values
      • CM_ACCESS_BORROW_RELEASE

        public static final long CM_ACCESS_BORROW_RELEASE
        flag release to borrow license
        See Also:
        Constant Field Values
      • CM_ACCESS_BORROW_VALIDATE

        public static final long CM_ACCESS_BORROW_VALIDATE
        flag check borrowed license
        See Also:
        Constant Field Values
      • CM_ACCESS_BORROW_IGNORESTATE

        public static final long CM_ACCESS_BORROW_IGNORESTATE
        flag ignore entry state for release to borrow license
        See Also:
        Constant Field Values
      • CM_ACCESS_IGNORE_LINGER_TIME

        public static final long CM_ACCESS_IGNORE_LINGER_TIME
        flag ignore Linger Time of License
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ADDFI

        public static final long CM_FSBFEATURECODE_ADDFI
        (0x00000001) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_DELETEFI

        public static final long CM_FSBFEATURECODE_DELETEFI
        (0x00000002) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_UPDATEFI

        public static final long CM_FSBFEATURECODE_UPDATEFI
        (0x00000004) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ADDPI

        public static final long CM_FSBFEATURECODE_ADDPI
        (0x00000008) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_DELETEPI

        public static final long CM_FSBFEATURECODE_DELETEPI
        (0x00000010) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_UPDATEPI

        public static final long CM_FSBFEATURECODE_UPDATEPI
        (0x00000020) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ADDEB

        public static final long CM_FSBFEATURECODE_ADDEB
        (0x00000040) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_DELETEEB

        public static final long CM_FSBFEATURECODE_DELETEEB
        (0x00000080) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_UPDATEEB

        public static final long CM_FSBFEATURECODE_UPDATEEB
        (0x00000100) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ATTACHEB

        public static final long CM_FSBFEATURECODE_ATTACHEB
        (0x00000200) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_GETBOXTIMESIGN

        public static final long CM_FSBFEATURECODE_GETBOXTIMESIGN
        (0x00002000) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_DELETEFISIGN

        public static final long CM_FSBFEATURECODE_DELETEFISIGN
        Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_LISTSIGN

        public static final long CM_FSBFEATURECODE_LISTSIGN
        (0x00008000) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_ENCRYPT

        public static final long CM_FSBFEATURECODE_ENCRYPT
        (0x00010000) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CM_FSBFEATURECODE_PRICEDEDUCT

        public static final long CM_FSBFEATURECODE_PRICEDEDUCT
        (0x00020000) Feature Code for the FSB operation
        See Also:
        Constant Field Values
      • CMACT_FSBFEATURECODE_SERIALNUMBERS

        public static final long CMACT_FSBFEATURECODE_SERIALNUMBERS
        (0x00040000) Feature Code for storing the CmAct serial numbers
        See Also:
        Constant Field Values
      • CM_AUTH_DIRECT

        public static final long CM_AUTH_DIRECT
        (0x00000000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_AUTH_EXTENDED

        public static final long CM_AUTH_EXTENDED
        (0x00010000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_AUTH_SERIAL

        public static final long CM_AUTH_SERIAL
        (0x00020000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_AUTH_EXTENDED2

        public static final long CM_AUTH_EXTENDED2
        (0x00030000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_AUTH_AMMASK

        public static final long CM_AUTH_AMMASK
        (0x00030000) Authentication mode specification (used in CMAUTHENTICATE)
        See Also:
        Constant Field Values
      • CM_CRYPT_AES

        public static final long CM_CRYPT_AES
        (0x00000000) Global definitions for the CodeMeter encryption algorithms to be used
        See Also:
        Constant Field Values
      • CM_CRYPT_ECIES

        public static final long CM_CRYPT_ECIES
        (0x00000000) Global definitions for the CodeMeter encryption algorithms to be used
        See Also:
        Constant Field Values
      • CM_CRYPT_ECIES_STD

        public static final long CM_CRYPT_ECIES_STD
        (0x00000000) Global definitions for the CodeMeter encryption algorithms to be used
        See Also:
        Constant Field Values
      • CM_CRYPT_AES_DIRECT

        public static final long CM_CRYPT_AES_DIRECT
        (0x00000000) Global definitions for the CodeMeter encryption algorithms to be used
        See Also:
        Constant Field Values
      • CM_CRYPT_CHKCRC

        public static final long CM_CRYPT_CHKCRC
        flags for CRC calculation and checking
        See Also:
        Constant Field Values
      • CM_CRYPT_SASTATIONSHARE

        public static final long CM_CRYPT_SASTATIONSHARE
        See Also:
        Constant Field Values
      • CM_LICENSE_TRANSFERBASED

        public static final long CM_LICENSE_TRANSFERBASED
        See Also:
        Constant Field Values
      • CM_LICENSE_FILEBASEDCREATE

        public static final long CM_LICENSE_FILEBASEDCREATE
        See Also:
        Constant Field Values
      • CM_LICENSE_PUBLICFIRMKEY

        public static final long CM_LICENSE_PUBLICFIRMKEY
        See Also:
        Constant Field Values
      • CM_LICENSE_FSBUPDATEKEY

        public static final long CM_LICENSE_FSBUPDATEKEY
        See Also:
        Constant Field Values
      • CM_LICENSE_BOXBASEDFSB

        public static final long CM_LICENSE_BOXBASEDFSB
        See Also:
        Constant Field Values
      • CM_SYSTEM_PLATFORM_MASK

        public static final long CM_SYSTEM_PLATFORM_MASK
        See Also:
        Constant Field Values
      • CM_SYSTEM_VERSION_MASK

        public static final long CM_SYSTEM_VERSION_MASK
        See Also:
        Constant Field Values
      • CM_SYSTEM_INVALID_PLATFORM

        public static final long CM_SYSTEM_INVALID_PLATFORM
        See Also:
        Constant Field Values
      • CM_SYSTEM_LITTLE_ENDIAN

        public static final long CM_SYSTEM_LITTLE_ENDIAN
        See Also:
        Constant Field Values
      • CM_SYSTEM_ENDIAN_ORDER_MASK

        public static final long CM_SYSTEM_ENDIAN_ORDER_MASK
        See Also:
        Constant Field Values
      • CM_SYSTEM_RUNNING_IN_VM

        public static final long CM_SYSTEM_RUNNING_IN_VM
        See Also:
        Constant Field Values
      • API_COMM_MODE_SHARED_MEM

        public static final long API_COMM_MODE_SHARED_MEM
        See Also:
        Constant Field Values
      • API_COMM_MODE_TCPIP_IPV4

        public static final long API_COMM_MODE_TCPIP_IPV4
        See Also:
        Constant Field Values
      • API_COMM_MODE_TCPIP_IPV6

        public static final long API_COMM_MODE_TCPIP_IPV6
        See Also:
        Constant Field Values
      • CM_COMMUNICATION_LAN_SERVER

        public static final long CM_COMMUNICATION_LAN_SERVER
        See Also:
        Constant Field Values
      • CM_COMMUNICATION_WAN_SERVER

        public static final long CM_COMMUNICATION_WAN_SERVER
        See Also:
        Constant Field Values
      • CM_COMMUNICATION_REMOTE_FSB_ACCESS

        public static final long CM_COMMUNICATION_REMOTE_FSB_ACCESS
        See Also:
        Constant Field Values
      • CM_EBI_NODISABLETIME

        public static final long CM_EBI_NODISABLETIME
        constants for disableTime
        See Also:
        Constant Field Values
      • CM_EBI_SIMPLEPIN

        public static final long CM_EBI_SIMPLEPIN
        flags for mbType in CMENABLING_ENABLEBLOCKITEM
        See Also:
        Constant Field Values
      • CM_ELUE_LOCATE

        public static final long CM_ELUE_LOCATE
        flags for mbEnableLevel & mbDisableLevel in CMENABLING_ENABLELOOKUPENTRY
        See Also:
        Constant Field Values
      • CM_WU_DISABLED

        public static final long CM_WU_DISABLED
        flags for musCtrl in CMENABLING_WRITEUPDATE
        See Also:
        Constant Field Values
      • CM_ACCESS_LOCAL_LANWAN

        public static final long CM_ACCESS_LOCAL_LANWAN
        See Also:
        Constant Field Values
      • CM_ACCESS_LANWAN_LOCAL

        public static final long CM_ACCESS_LANWAN_LOCAL
        See Also:
        Constant Field Values
      • CM_CE_THRESHOLD_UNITCOUNTER

        public static final long CM_CE_THRESHOLD_UNITCOUNTER
        See Also:
        Constant Field Values
      • CM_CE_THRESHOLD_EXPDATE

        public static final long CM_CE_THRESHOLD_EXPDATE
        See Also:
        Constant Field Values
      • CM_CE_SERVER_TERMINATED

        public static final long CM_CE_SERVER_TERMINATED
        See Also:
        Constant Field Values
      • CM_CRYPT_STREAM

        public static final long CM_CRYPT_STREAM
        commands for indirect encryption
        See Also:
        Constant Field Values
      • CM_CRYPT_AES_ENC_CBC_DIRECT

        public static final long CM_CRYPT_AES_ENC_CBC_DIRECT
        See Also:
        Constant Field Values
      • CM_CRYPT_AES_DEC_CBC_DIRECT

        public static final long CM_CRYPT_AES_DEC_CBC_DIRECT
        See Also:
        Constant Field Values
      • CM_CRYPT_AUTOKEY

        public static final long CM_CRYPT_AUTOKEY
        This flag can be or ed with all upper commands for indirect encryption
        See Also:
        Constant Field Values
      • CM_GBC_CAPABILITY_MASK

        public static final long CM_GBC_CAPABILITY_MASK
        See Also:
        Constant Field Values
      • CM_GEI_INTERNALENTRYINFO

        public static final long CM_GEI_INTERNALENTRYINFO
        See Also:
        Constant Field Values
      • CM_GEI_ENABLEBLOCKITEMS

        public static final long CM_GEI_ENABLEBLOCKITEMS
        See Also:
        Constant Field Values
      • CM_GEI_ENABLELOOKUPITEMS_FI

        public static final long CM_GEI_ENABLELOOKUPITEMS_FI
        See Also:
        Constant Field Values
      • CM_GEI_ENABLELOOKUPITEMS_PI

        public static final long CM_GEI_ENABLELOOKUPITEMS_PI
        See Also:
        Constant Field Values
      • CM_GEI_NETINFO_CLUSTER

        public static final long CM_GEI_NETINFO_CLUSTER
        See Also:
        Constant Field Values
      • CM_GEI_SECURITYVERSION

        public static final long CM_GEI_SECURITYVERSION
        See Also:
        Constant Field Values
      • CM_GEI_NETINFO_USER_EXT

        public static final long CM_GEI_NETINFO_USER_EXT
        See Also:
        Constant Field Values
      • CM_GEI_ACT_LICENSE_INFO

        public static final long CM_GEI_ACT_LICENSE_INFO
        See Also:
        Constant Field Values
      • CM_GEI_ACT_LICENSE_INFO2

        public static final long CM_GEI_ACT_LICENSE_INFO2
        See Also:
        Constant Field Values
      • CM_GEI_LTTRANSFEROPTIONS

        public static final long CM_GEI_LTTRANSFEROPTIONS
        See Also:
        Constant Field Values
      • CM_GEI_CLOUD_LICENSE_INFO

        public static final long CM_GEI_CLOUD_LICENSE_INFO
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_LOWMEMORY

        public static final long CM_BOXSTATUS_LOWMEMORY
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_REMOVABLE

        public static final long CM_BOXSTATUS_REMOVABLE
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED

        public static final long CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_USES_HID_COMMUNICATION

        public static final long CM_BOXSTATUS_USES_HID_COMMUNICATION
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_USES_SPI_COMMUNICATION

        public static final long CM_BOXSTATUS_USES_SPI_COMMUNICATION
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_FEATURE_MASK

        public static final long CM_BOXSTATUS_FEATURE_MASK
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_ACTIVATE_BY_CODE

        public static final long CM_ACTSTATUS_ACTIVATE_BY_CODE
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_ACTIVATE_BY_FILE

        public static final long CM_ACTSTATUS_ACTIVATE_BY_FILE
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_PROGRAMMABLE

        public static final long CM_ACTSTATUS_PROGRAMMABLE
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_PSN_REQUIRED

        public static final long CM_ACTSTATUS_PSN_REQUIRED
        See Also:
        Constant Field Values
      • CM_ACTSTATUS_VM_DETECTED

        public static final long CM_ACTSTATUS_VM_DETECTED
        CM_ACTSTATUS_VM_DETECTED has two meanings: When returned by CM_GEI_BOXSTATUS it's an error condition; when returned by CM_GF_ACT_GETFILEINFO, the file was created in a VM (which was permitted)
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_CMACT_MASK

        public static final long CM_BOXSTATUS_CMACT_MASK
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_TEMPENABLED

        public static final long CM_BOXSTATUS_TEMPENABLED
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_NOENABLEITEMS

        public static final long CM_BOXSTATUS_NOENABLEITEMS
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_AMBIGUOUS

        public static final long CM_BOXSTATUS_AMBIGUOUS
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_STATE_FUM

        public static final long CM_BOXSTATUS_STATE_FUM
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_STATE_LOCKED

        public static final long CM_BOXSTATUS_STATE_LOCKED
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_STATE_MASK

        public static final long CM_BOXSTATUS_STATE_MASK
        See Also:
        Constant Field Values
      • CM_BOXSTATUS_ISCMCLOUD

        public static final long CM_BOXSTATUS_ISCMCLOUD
        See Also:
        Constant Field Values
      • CM_CLOUDSTATUS_DISCONNECTED

        public static final long CM_CLOUDSTATUS_DISCONNECTED
        See Also:
        Constant Field Values
      • CM_GS_REMOTE_SERVERS_ONLY

        public static final long CM_GS_REMOTE_SERVERS_ONLY
        See Also:
        Constant Field Values
      • CM_GS_IPADDR_IPv6MAPPED

        public static final long CM_GS_IPADDR_IPv6MAPPED
        See Also:
        Constant Field Values
      • CM_GS_INCLUDE_CMWAN_SERVERS

        public static final long CM_GS_INCLUDE_CMWAN_SERVERS
        See Also:
        Constant Field Values
      • CM_GLET_ERRORTEXT

        @Deprecated
        public static final long CM_GLET_ERRORTEXT
        Deprecated.
        See Also:
        Constant Field Values
      • CM_GLET_DIALOG

        @Deprecated
        public static final long CM_GLET_DIALOG
        Deprecated.
        See Also:
        Constant Field Values
      • CM_CPIO_CHANGEDEPENDENCY

        public static final long CM_CPIO_CHANGEDEPENDENCY
        See Also:
        Constant Field Values
      • CM_CPIO_MAINTENANCEPERIOD

        public static final long CM_CPIO_MAINTENANCEPERIOD
        See Also:
        Constant Field Values
      • CM_CPIO_ADD

        public static final long CM_CPIO_ADD
        flags combined only with CM_CPIO_PRODUCTCODE
        See Also:
        Constant Field Values
      • CM_CPIO_DELETE_PIO

        public static final long CM_CPIO_DELETE_PIO
        flag combined with any CM_CPIO_...-flag
        See Also:
        Constant Field Values
      • CM_CPIO_TERMINATE

        public static final long CM_CPIO_TERMINATE
        flag combined with any CM_CPIO_...-flag but only called once altogether
        See Also:
        Constant Field Values
      • CM_PROG_MASTERPASSWORD

        public static final long CM_PROG_MASTERPASSWORD
        See Also:
        Constant Field Values
      • CM_RMT_OVERWRITE

        public static final long CM_RMT_OVERWRITE
        flags for Remote Programming
        See Also:
        Constant Field Values
      • CM_REVALIDATE_DEFAULT

        public static final long CM_REVALIDATE_DEFAULT
        flags for cmRevalidateBox
        See Also:
        Constant Field Values
      • CM_REVALIDATE_LICENSOR_BIT28

        public static final long CM_REVALIDATE_LICENSOR_BIT28
        See Also:
        Constant Field Values
      • CM_REVALIDATE_LICENSOR_BIT29

        public static final long CM_REVALIDATE_LICENSOR_BIT29
        See Also:
        Constant Field Values
      • CM_REVALIDATE_LICENSOR_BIT30

        public static final long CM_REVALIDATE_LICENSOR_BIT30
        See Also:
        Constant Field Values
      • CM_REVALIDATE_LICENSOR_BIT31

        public static final long CM_REVALIDATE_LICENSOR_BIT31
        See Also:
        Constant Field Values
      • CM_REVALIDATE_LICENSOR_SPECIFIC_MASK

        public static final long CM_REVALIDATE_LICENSOR_SPECIFIC_MASK
        See Also:
        Constant Field Values
      • CM_REVALIDATE_WIBU_SYSTEMS_MASK

        public static final long CM_REVALIDATE_WIBU_SYSTEMS_MASK
        See Also:
        Constant Field Values
      • CM_SECURE_DISC_STATUS

        public static final long CM_SECURE_DISC_STATUS
        flags for CmSecureDisc feature
        See Also:
        Constant Field Values
      • CM_GET_DISC_CONFIGURATION

        public static final long CM_GET_DISC_CONFIGURATION
        See Also:
        Constant Field Values
      • CM_SECURE_DISC_VERIFY_MASK

        public static final long CM_SECURE_DISC_VERIFY_MASK
        See Also:
        Constant Field Values
      • CM_SECURE_DISC_VERIFY_ON

        public static final long CM_SECURE_DISC_VERIFY_ON
        See Also:
        Constant Field Values
      • CM_SECURE_DISC_VERIFY_OFF

        public static final long CM_SECURE_DISC_VERIFY_OFF
        See Also:
        Constant Field Values
      • CM_SECURE_DISC_VERIFY_AUTO

        public static final long CM_SECURE_DISC_VERIFY_AUTO
        See Also:
        Constant Field Values
      • CM_CPS_CODEMETER

        public static final int CM_CPS_CODEMETER
        flags for cps in all CMBORROWXXX structures
        See Also:
        Constant Field Values
      • CM_CRED_LICENSE_LOCATION_LOCAL

        public static final int CM_CRED_LICENSE_LOCATION_LOCAL
        Identicate that an access is based on CM_ACCESS_LOCAL
        See Also:
        Constant Field Values
      • CM_CRED_LICENSE_LOCATION_LAN

        public static final int CM_CRED_LICENSE_LOCATION_LAN
        Identicate that an access is based on CM_ACCESS_LAN
        See Also:
        Constant Field Values
      • CM_CRED_LICENSE_LOCATION_MASK

        public static final int CM_CRED_LICENSE_LOCATION_MASK
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_ENTRY

        public static final int CM_CRED_HANDLE_ACCESS_ENTRY
        Identicate that a handle is based on a Entry Access
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_FI

        public static final int CM_CRED_HANDLE_ACCESS_FI
        Identicate that a handle is based on a FI Access
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_BOX

        public static final int CM_CRED_HANDLE_ACCESS_BOX
        Identicate that a handle is based on a Box Access
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_SUBSYSTEM

        public static final int CM_CRED_HANDLE_ACCESS_SUBSYSTEM
        Identicate that a handle is based on a SubSystem Access
        See Also:
        Constant Field Values
      • CM_CRED_HANDLE_ACCESS_MASK

        public static final int CM_CRED_HANDLE_ACCESS_MASK
        See Also:
        Constant Field Values
      • CM_LIBTYPE_WIBUCM

        public static final int CM_LIBTYPE_WIBUCM
        CodeMeter Client Library Types
        See Also:
        Constant Field Values
      • CM_LIBTYPE_WIBUCMEMBEDDED

        public static final int CM_LIBTYPE_WIBUCMEMBEDDED
        See Also:
        Constant Field Values
      • CM_BE_PRODUCTCODE

        public static long CM_BE_PRODUCTCODE
      • CM_BE_FEATUREMAP

        public static long CM_BE_FEATUREMAP
      • CM_BE_EXPTIME

        public static long CM_BE_EXPTIME
      • CM_BE_ACTTIME

        public static long CM_BE_ACTTIME
      • CM_BE_UNITCOUNTER

        public static long CM_BE_UNITCOUNTER
      • CM_BE_PROTDATA

        public static long CM_BE_PROTDATA
      • CM_BE_EXTPROTDATA

        public static long CM_BE_EXTPROTDATA
      • CM_BE_HIDDENDATA

        public static long CM_BE_HIDDENDATA
      • CM_BE_SECRETDATA

        public static long CM_BE_SECRETDATA
      • CM_BE_USERDATA

        public static long CM_BE_USERDATA
      • CM_BE_TEXT

        public static long CM_BE_TEXT
      • CM_BE_USAGEPERIOD

        public static long CM_BE_USAGEPERIOD
      • CM_BE_LICENSEQUANTITY

        public static long CM_BE_LICENSEQUANTITY
      • CM_BE_BORROWCLIENT

        public static long CM_BE_BORROWCLIENT
      • CM_BE_BORROWSERVER

        public static long CM_BE_BORROWSERVER
      • CM_BE_COLI

        public static long CM_BE_COLI
      • CM_BE_MAINTENANCEPERIOD

        public static long CM_BE_MAINTENANCEPERIOD
      • CM_BE_LINGERTIME

        public static long CM_BE_LINGERTIME
      • CM_BE_MINIMUMVERSION

        public static long CM_BE_MINIMUMVERSION
      • CM_BE_MODULE_ITEM

        public static long CM_BE_MODULE_ITEM
      • CM_BE_BORROWEXPIRATIONTIME

        public static long CM_BE_BORROWEXPIRATIONTIME
      • CM_BE_HISTORY

        public static long CM_BE_HISTORY
      • CM_BE_UNIVERSALDATA

        public static long CM_BE_UNIVERSALDATA
      • CM_BE_PASSWORD

        @Deprecated
        public static long CM_BE_PASSWORD
        Deprecated.
      • CM_BE_ACCESS_PASSWORD

        public static long CM_BE_ACCESS_PASSWORD
      • CM_BE_TRANSFEROPTIONS

        public static long CM_BE_TRANSFEROPTIONS
      • CM_BE_RETURNINFO

        public static long CM_BE_RETURNINFO
      • CM_BE_ACCEPTSPULL

        public static long CM_BE_ACCEPTSPULL
      • CM_BE_STATUS

        public static long CM_BE_STATUS
      • CM_BE_NAMEDUSER

        public static long CM_BE_NAMEDUSER
      • CM_BE_MAX_ENCRYPTION_RATE

        public static long CM_BE_MAX_ENCRYPTION_RATE
      • CM_BE_PIO_MASK

        public static long CM_BE_PIO_MASK
      • CM_GF_FI_ALLOWED_TO_PULL

        public static long CM_GF_FI_ALLOWED_TO_PULL
      • CM_SYSTEMSTATUS_RUNNING_AS_SERVICE

        public static final long CM_SYSTEMSTATUS_RUNNING_AS_SERVICE
        definition of the mflStatusFlags flags (CMSYSTEMSTATUS / CM_GEI_SYSTEMSTATUS)
        See Also:
        Constant Field Values
      • CM_SYSTEMSTATUS_CMACT_ENABLED

        public static final long CM_SYSTEMSTATUS_CMACT_ENABLED
        See Also:
        Constant Field Values
      • CM_SYSTEMSTATUS_MSD_ENABLED

        public static final long CM_SYSTEMSTATUS_MSD_ENABLED
        See Also:
        Constant Field Values
      • CM_SYSTEMSTATUS_HID_ENABLED

        public static final long CM_SYSTEMSTATUS_HID_ENABLED
        See Also:
        Constant Field Values
      • CM_SYSTEMSTATUS_CMACT_AVAILABLE

        public static final long CM_SYSTEMSTATUS_CMACT_AVAILABLE
        See Also:
        Constant Field Values
      • CMFAS_CTL_CMD_MASK

        public static final long CMFAS_CTL_CMD_MASK
        4.0.) Remote Update Structures
        See Also:
        Constant Field Values
      • CMFAS_CTL_CMD_UPDATE_EXISTING

        public static final long CMFAS_CTL_CMD_UPDATE_EXISTING
        See Also:
        Constant Field Values
      • CMFAS_CTL_CMD_GET_COUNT

        public static final long CMFAS_CTL_CMD_GET_COUNT
        See Also:
        Constant Field Values
      • CMFAS_CTL_OPT_ABORT_ON_ERROR

        public static final long CMFAS_CTL_OPT_ABORT_ON_ERROR
        See Also:
        Constant Field Values
      • CMFAS_SELECT_MASK

        public static final long CMFAS_SELECT_MASK
        Flags for CMFAS::select
        See Also:
        Constant Field Values
      • CMFAS_SELECT_SERIALNUMBER

        public static final long CMFAS_SELECT_SERIALNUMBER
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_LICENSE

        public static final long CMFAS_ITEMTYPE_LICENSE
        Flags for CMFAS::itemType
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMACT_LICENSE

        public static final long CMFAS_ITEMTYPE_CMACT_LICENSE
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMHW_LICENSE

        public static final long CMFAS_ITEMTYPE_CMHW_LICENSE
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMCLOUD_LICENSE

        public static final long CMFAS_ITEMTYPE_CMCLOUD_LICENSE
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMFIRM_WBC

        public static final long CMFAS_ITEMTYPE_CMFIRM_WBC
        See Also:
        Constant Field Values
      • CMFAS_ITEMTYPE_CMACT_FI_TEMPLATE

        public static final long CMFAS_ITEMTYPE_CMACT_FI_TEMPLATE
        See Also:
        Constant Field Values
      • CM_EC_PRODUCTITEM

        public static final long CM_EC_PRODUCTITEM
        Flags for mbItemType of CMENABLING_CONTEXT
        See Also:
        Constant Field Values
      • CM_LT_FSB

        public static final long CM_LT_FSB
        License Transfer Global Definitions
        See Also:
        Constant Field Values
      • CM_LTCA_LICENSORTRANSFERKEY

        public static final long CM_LTCA_LICENSORTRANSFERKEY
        See Also:
        Constant Field Values
      • CM_LTCA_RECEIPT_NOTIMPORTEDLICENSE

        public static final long CM_LTCA_RECEIPT_NOTIMPORTEDLICENSE
        See Also:
        Constant Field Values
      • CM_LTR_NORECEIPT

        public static final long CM_LTR_NORECEIPT
        The following Parameters are set in CMLTREQUEST::mflCtrl:
        See Also:
        Constant Field Values
      • CM_HISTORY_TYPE_MOVE_COMPLETE

        public static final long CM_HISTORY_TYPE_MOVE_COMPLETE
        definition of the mbTransferType flags (CMLTHISTORY / CM_GEI_LTHISTORY)
        See Also:
        Constant Field Values
      • CM_HISTORY_TYPE_MOVE_UNITS

        public static final long CM_HISTORY_TYPE_MOVE_UNITS
        See Also:
        Constant Field Values
      • CM_HISTORY_TYPE_MOVE_LICENSES

        public static final long CM_HISTORY_TYPE_MOVE_LICENSES
        See Also:
        Constant Field Values
      • CM_HISTORY_TYPE_BORROW_LOCAL_LICENSE

        public static final long CM_HISTORY_TYPE_BORROW_LOCAL_LICENSE
        See Also:
        Constant Field Values
      • CM_HISTORY_TYPE_BORROW_COMPLETE

        public static final long CM_HISTORY_TYPE_BORROW_COMPLETE
        See Also:
        Constant Field Values
      • CM_HISTORY_TYPE_MERGE_UNITS

        public static final long CM_HISTORY_TYPE_MERGE_UNITS
        See Also:
        Constant Field Values
      • CM_HISTORY_TYPE_MERGE_LICENSES

        public static final long CM_HISTORY_TYPE_MERGE_LICENSES
        See Also:
        Constant Field Values
      • CM_HISTORY_STATUS_HIDDEN

        public static final long CM_HISTORY_STATUS_HIDDEN
        definition of the mflStatus flags (CMLTHISTORY / CM_GEI_LTHISTORY)
        See Also:
        Constant Field Values
      • CM_HISTORY_STATUS_IN_PUSH_TRANSIT

        public static final long CM_HISTORY_STATUS_IN_PUSH_TRANSIT
        See Also:
        Constant Field Values
      • CM_HISTORY_STATUS_IN_RETURN_TRANSIT

        public static final long CM_HISTORY_STATUS_IN_RETURN_TRANSIT
        See Also:
        Constant Field Values
      • CM_HISTORY_STATUS_IN_PULL_TRANSIT

        public static final long CM_HISTORY_STATUS_IN_PULL_TRANSIT
        See Also:
        Constant Field Values
      • CM_HISTORY_STATUS_ACTIVE

        public static final long CM_HISTORY_STATUS_ACTIVE
        See Also:
        Constant Field Values
      • CM_TRANSFER_OPTIONS_MAY_BE_PULLED

        public static final long CM_TRANSFER_OPTIONS_MAY_BE_PULLED
        definition of the mflFlags flags (CMLTTRANSFEROPTIONS / CM_GEI_LTTRANSFEROPTIONS)
        See Also:
        Constant Field Values
      • CM_TRANSFER_OPTIONS_MAY_BE_RETURNED

        public static final long CM_TRANSFER_OPTIONS_MAY_BE_RETURNED
        See Also:
        Constant Field Values
      • CM_TRANSFER_OPTIONS_NO_FI_AT_TARGET_REQUIRED

        public static final long CM_TRANSFER_OPTIONS_NO_FI_AT_TARGET_REQUIRED
        See Also:
        Constant Field Values
      • CM_TRANSFER_TYPE_MOVE_COMPLETE

        public static final long CM_TRANSFER_TYPE_MOVE_COMPLETE
        definition of the mflTransferType flags (CMLTTRANSFEROPTIONS / CM_GEI_LTTRANSFEROPTIONS)
        See Also:
        Constant Field Values
      • CM_TRANSFER_TYPE_MOVE_UNITS

        public static final long CM_TRANSFER_TYPE_MOVE_UNITS
        See Also:
        Constant Field Values
      • CM_TRANSFER_TYPE_MOVE_LICENSES

        public static final long CM_TRANSFER_TYPE_MOVE_LICENSES
        See Also:
        Constant Field Values
      • CM_TRANSFER_TYPE_BORROW_LOCAL_LICENSE

        public static final long CM_TRANSFER_TYPE_BORROW_LOCAL_LICENSE
        See Also:
        Constant Field Values
      • CM_TRANSFER_TYPE_BORROW_COMPLETE

        public static final long CM_TRANSFER_TYPE_BORROW_COMPLETE
        See Also:
        Constant Field Values
      • CM_TRANSFER_TYPE_BORROW_NONE

        public static final long CM_TRANSFER_TYPE_BORROW_NONE
        See Also:
        Constant Field Values
      • CM_NMU_MODE_USERDOMAIN

        public static final long CM_NMU_MODE_USERDOMAIN
        See Also:
        Constant Field Values
      • CM_NMU_MODE_USERDEFINED

        public static final long CM_NMU_MODE_USERDEFINED
        See Also:
        Constant Field Values
      • CM_NMU_FLAG_SINGLE_ALLOCATION

        public static final long CM_NMU_FLAG_SINGLE_ALLOCATION
        See Also:
        Constant Field Values
      • CM_LTT_MOVECOMPLETE

        public static final long CM_LTT_MOVECOMPLETE
        The following Parameters are set in CMLTTRANSFER::mflCtrl:
        See Also:
        Constant Field Values
      • CM_LTT_BORROWLOCALLICENSE

        public static final long CM_LTT_BORROWLOCALLICENSE
        See Also:
        Constant Field Values
      • CM_LTCU_DELETED

        public static final long CM_LTCU_DELETED
        flags for flCtrl of CmLtCleanup()
        See Also:
        Constant Field Values
    • Constructor Detail

      • CodeMeter

        public CodeMeter()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        This is a default application which just prints the version number to System.out. The version number is read from the MANIFEST.MF file.
        Parameters:
        args - '-v' to display only the version info.
      • cmAccess

        public static long cmAccess​(long jCtrl,
                                    CodeMeter.CMACCESS jAccess)

        CmAccess() opens the access to a SubSystem (SubSystem Access), to a CmContainer (Box Access), to a single Firm Item (FC, Firm Item Access) or a CmContainer entry (FC:PC, Entry Access) in a given subsystem. A detailed description of the Access Modes is available here.

        SubSystem Access is a superset of Box Access. Box Access is a superset of Firm Item Access. Firm Item Access is a superset of Entry Access. Anything that can be done with SubSystem Access can also be done with Box Access, but not vice versa!

        The subsystem can be the local computer (CmLocal) or a local area network system (CmLAN) which implies that a CodeMeter.exe server process must be started with a CmContainer connected on an other system in the network. The communication with the network subsystem is done using TCP and UDP. The desired subsystem and the search order can be set in the flCtrl flag.

        If a network access to another computer is performed it will be available until the access is closed with CmRelease(). If more than one connection between two instances should be required, CmAccess() will open only one connection which is the medium for all communication between the two clients.

        CmAccess() must be called before a call the returned handle is used. A standard constant for the local access does not exist.

        Parameters:
        jCtrl - specifies one of the following commands to set the wanted subsystems. Only one of these constants can be set.
        • CM_ACCESS_LOCAL only searches in CmLocal for a CmContainer with a matching entry.
        • CM_ACCESS_LAN only searches in CmLAN for a CmContainer with a matching entry.
        • CM_ACCESS_LOCAL_LAN searches CmLocal first for a CmContainer with a matching entry and after that in CmLAN if no CmContainer was found locally.
        • CM_ACCESS_LAN_LOCAL searches CmLAN first for a CmContainer with a matching entry and after that in CmLocal if no CmContainer was found in the network.
        jAccess - sets the needed data for the wanted access (see CMACCESS).
        Returns:
        The handle to the wanted CmContainer Entry or CmContainer in the wanted subsystem is returned. If no fitting CmContainer Entry or CmContainer is found then null is returned.
      • cmAccess2

        public static long cmAccess2​(long jCtrl,
                                     CodeMeter.CMACCESS2 jAccess2)
        cmAccess2() provides enhanced functionality to access a CmContainer by using the CMCREDENTIAL features. It is available from CodeMeter 3.30 and offers a user-defined timing to release licenses that were allocated locally or in the network. This release interval overwrites the default timing value CleanUpTimeOut of the CodeMeter profiling. The benefit is that the user cannot influence this timing anymore. Additionally the validity period of the handle returned by CmAccess2() can be determined. This feature can be used to limit the usage period of an application that allocates a license using CmAccess2(). The mapping of the licenses on a CodeMeter server can be simplified by giving an user-defined string or number (session-ID) that is displayed on the server once the license was allocated. cmAccess2() opens the access to a SubSystem (SubSystem Access), to a CmContainer (Box Access), to a single Firm Item (FC, Firm Item Access) or a CmContainer entry (FC:PC, Entry Access) in a given subsystem. A detailed description of the Access Modes is available here. SubSystem Access is a superset of Box Access. Box Access is a superset of Firm Item Access. Firm Item Access is a superset of Entry Access. Anything that can be done with SubSystem Access can also be done with Box Access, but not vice versa! The subsystem can be the local computer (CmLocal) or a local area network system (CmLAN) which implies that a CodeMeter runtime server process must be started with a CmContainer connected on an other system in the network. The communication with the network subsystem is done using TCP and UDP. The desired subsystem and the search order can be set in the ctrl flag. If a network access to another computer is performed it will be available until the access is closed with CmRelease(). If more than one connection between two instances should be required, CmAccess2() will open only one connection which is the medium for all communication between the two clients. A standard constant for the local access does not exist. CmAccess2() is supported from CodeMeter 3.30.
      • cmRelease

        public static int cmRelease​(long jHandle)
        CmRelease closes a handle opened by CmAccess and all related subsystem accesses. The driver will be cleaned up internally. Subsystem access will only be closed if there's no other handle/entry using it. This still open subsystem access will be closed from the last open handle to an entry using this subsystem when CmRelease is called for this handle.

        Remember:
        CodeMeter.exe handles the teamwork between two or more handles internally. It prevents a subsystem closing while another handle still uses it. The vice versa variant is also prevented.

        Parameters:
        jHandle - contains a handle opened by CmAccess.
        Returns:
        '1' is returned, if everything has went okay - '0', if not.
      • cmCrypt

        public static int cmCrypt​(long jHandle,
                                  long flCtrl,
                                  CodeMeter.CMCRYPT cmCrypt,
                                  byte[] pvDest)
        CmCrypt encrypts or decrypts data with direct or indirect encryption (see Encryption Modes) via a CmContainer entry.
        Parameters:
        jHandle - contains a handle opened by CmAccess. Access Mode must be Entry Access to the Firm Code : Product Code entry used for en-/decryption.
        flCtrl - contains the encryption or decryption command. Following commands are supported:
        • CM_CRYPT_DIRECT_ENC executes the direct symmetric encryption via a CmContainer entry. The length of bytes to encrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT.
        • CM_CRYPT_DIRECT_DEC executes the direct symmetric decryption via a CmContainer entry. The length of bytes to decrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT.
        • CM_CRYPT_STREAM executes the indirect en-/decryption using a StreamCipher algorithm. The length of the sequence to en-/decrypt must be at least 1 byte. AutoKey Mode is not allowed here.
        • CM_CRYPT_AES_ENC_ECB executes the indirect encryption using the AES BlockCipher algorithm with ECB. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_ECB executes the indirect decryption using the AES BlockCipher algorithm with ECB. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_ENC_CFB executes the indirect encryption using the AES BlockCipher algorithm with CFB. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_CFB executes the indirect decryption using the AES BlockCipher algorithm with CFB. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_ENC_CBC executes the indirect encryption using the AES BlockCipher algorithm with CBC. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_CBC executes the indirect decryption using the AES BlockCipher algorithm with CBC. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        If no other option is set, Explicit Mode is used for indirect en-/decryption. To use AutoKey Mode the CM_CRYPT_AUTOKEY flag must be or'ed with the command of the indiect en-/decryption.
        cmCrypt - sets some needed data for the en-/decryption process (see CMCRYPT).
        pvDest - contains the data to en-/decrypt.
        Returns:
        This method returns the number of en-/decrypted bytes. If an error occurred 0 will be returned.
      • cmCrypt2

        public static int cmCrypt2​(long jHandle,
                                   long flCtrl,
                                   CodeMeter.CMCRYPT2 cmCrypt2,
                                   byte[] pvDest)
        CmCrypt2 encrypts or decrypts data with direct or indirect encryption (see Encryption Modes) via a CmContainer entry. Remarks: CmCrypt2() is supported since CodeMeter 4.30.
        Parameters:
        jHandle - contains a handle opened by CmAccess / CmAccess2. Access Mode must be Entry Access to the Firm Code : Product Code entry used for en-/decryption. For software encryption (CM_CRYPT_AES_ENC_CBC_DIRECT or CM_CRYPT_AES_DEC_CBC_DIRECT) this has to be NULL.
        flCtrl - contains the encryption or decryption command. Following commands are supported:
        • CM_CRYPT_DIRECT_ENC executes the direct symmetric encryption via a CmContainer entry. The length of bytes to encrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT2.
        • CM_CRYPT_DIRECT_DEC executes the direct symmetric decryption via a CmContainer entry. The length of bytes to decrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT2.
        • CM_CRYPT_STREAM executes the indirect en-/decryption using a StreamCipher algorithm. The length of the sequence to en-/decrypt must be at least 1 byte.
        • CM_CRYPT_AES_ENC_ECB executes the indirect encryption using the AES BlockCipher algorithm with ECB. The length of the sequence to encrypt must be at least 16 bytes.
        • CM_CRYPT_AES_DEC_ECB executes the indirect decryption using the AES BlockCipher algorithm with ECB. The length of the sequence to decrypt must be at least 16 bytes.
        • CM_CRYPT_AES_ENC_CFB executes the indirect encryption using the AES BlockCipher algorithm with CFB. The length of the sequence to encrypt must be at least 16 bytes.
        • CM_CRYPT_AES_DEC_CFB executes the indirect decryption using the AES BlockCipher algorithm with CFB. The length of the sequence to decrypt must be at least 16 bytes.
        • CM_CRYPT_AES_ENC_CBC executes the indirect encryption using the AES BlockCipher algorithm with CBC. The length of the sequence to encrypt must be at least 16 bytes.
        • CM_CRYPT_AES_DEC_CBC executes the indirect decryption using the AES BlockCipher algorithm with CBC. The length of the sequence to decrypt must be at least 16 bytes.
        • CM_CRYPT_AES_ENC_CBC_DIRECT executes the encryption using the original AES BlockCipher algorithm with CBC. It does not use any CodeMeter license, therefore use NULL for hcmse. The AES key has to be placed in mabDirectAesKey, the initialization vector in mabInitKey - both see CMBASECRYPT2.
        • CM_CRYPT_AES_DEC_CBC_DIRECT executes the decryption using the original AES BlockCipher algorithm with CBC. It does not use any CodeMeter license, therefore use NULL for hcmse. The AES key has to be placed in mabDirectAesKey, the initialization vector in mabInitKey - both see CMBASECRYPT2.
        cmCrypt2 - sets some needed data for the en-/decryption process (see CMCRYPT2).
        pvDest - contains the data to en-/decrypt.
        Returns:
        This function returns the number of en-/decrypted bytes. If an error occurred 0 will be returned.
      • cmCryptSim

        public static int cmCryptSim​(long jHandle,
                                     long flCtrl,
                                     CodeMeter.CMCRYPTSIM pcmCryptSim,
                                     byte[] pvDest)
        CmCryptSim encrypts or decrypts data with direct or indirect encryption (see Encryption Modes) by using the Firm Security Box (FSB) entry of the wanted Firm Code.
        Parameters:
        jHandle - contains a handle opened by CmAccess. Access Mode must be Entry Access to the FSB entry of the wanted Firm Code. If the Firm Code is an evaluation Firm Code the access can be SubSystem Access. A fitting entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
        flCtrl - contains the encryption or decryption command. Following commands are supported:
        • CM_CRYPT_DIRECT_ENC executes the direct symmetric encryption via a CmContainer entry. The length of bytes to encrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT.
        • CM_CRYPT_DIRECT_DEC executes the direct symmetric decryption via a CmContainer entry. The length of bytes to decrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT.
        • CM_CRYPT_STREAM executes the indirect en-/decryption using a StreamCipher algorithm. The length of the sequence to en-/decrypt must be at least 1 byte. AutoKey Mode is not allowed here.
        • CM_CRYPT_AES_ENC_ECB executes the indirect encryption using the AES BlockCipher algorithm with ECB. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_ECB executes the indirect decryption using the AES BlockCipher algorithm with ECB. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_ENC_CFB executes the indirect encryption using the AES BlockCipher algorithm with CFB. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_CFB executes the indirect decryption using the AES BlockCipher algorithm with CFB. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_ENC_CBC executes the indirect encryption using the AES BlockCipher algorithm with CBC. The length of the sequence to encrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        • CM_CRYPT_AES_DEC_CBC executes the indirect decryption using the AES BlockCipher algorithm with CBC. The length of the sequence to decrypt must be at least 16 bytes. With AutoKey Mode length must be at least 32 bytes.
        If no other option is set, Explicit Mode is used for indirect en-/decryption. To use AutoKey Mode the CM_CRYPT_AUTOKEY flag must be or'ed with the command of the indiect en-/decryption.
        pcmCryptSim - sets some needed data for the en-/decryption process (see CMCRYPTSIM).
        pvDest - contains the data to en-/decrypt.
        Returns:
        This method returns the number of en-/decrypted bytes. If an error occurred 0 will be returned.
      • cmCryptSim2

        public static int cmCryptSim2​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMCRYPTSIM2 cmCryptSim2,
                                      byte[] pvDest)
        CmCryptSim2 encrypts or decrypts data with direct or indirect encryption (see Encryption Modes) by using the Firm Security Box (FSB) entry of the wanted Firm Code. Remarks: The key source in CMCRYPTSIM2::mcmcrypt::mflCtrl can only be the Firm Key. Other key sources like Hidden Data or Secret Data cannot be simulated by a FSB. This function is only for Licensor site because a FSB is required. CmCryptSim2() is supported since CodeMeter 4.30.
        Parameters:
        jHandle - contains a handle opened by CmAccess / CmAccess2. Access Mode must be Entry Access to the FSB entry of the wanted Firm Code. If the Firm Code is an evaluation Firm Code the access can be SubSystem Access. A fitting entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
        flCtrl - flCtrl contains the encryption or decryption command. Following commands are supported:
        • CM_CRYPT_DIRECT_ENC executes the direct symmetric encryption via a CmContainer entry. The length of bytes to encrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT2.
        • CM_CRYPT_DIRECT_DEC executes the direct symmetric decryption via a CmContainer entry. The length of bytes to decrypt must be exactly 16 bytes (for CM_CRYPT_AES) or between 0 and 32 bytes (for CM_CRYPT_ECIES and CM_CRYPT_ECIES_STD) - see CMBASECRYPT2.
        • CM_CRYPT_STREAM executes the indirect en-/decryption using a StreamCipher algorithm. The length of the sequence to en-/decrypt must be at least 1 byte.
        • CM_CRYPT_AES_ENC_ECB executes the indirect encryption using the AES BlockCipher algorithm with ECB. The length of the sequence to encrypt must be at least 16 bytes.
        • CM_CRYPT_AES_DEC_ECB executes the indirect decryption using the AES BlockCipher algorithm with ECB. The length of the sequence to decrypt must be at least 16 bytes.
        • CM_CRYPT_AES_ENC_CFB executes the indirect encryption using the AES BlockCipher algorithm with CFB. The length of the sequence to encrypt must be at least 16 bytes.
        • CM_CRYPT_AES_DEC_CFB executes the indirect decryption using the AES BlockCipher algorithm with CFB. The length of the sequence to decrypt must be at least 16 bytes.
        • CM_CRYPT_AES_ENC_CBC executes the indirect encryption using the AES BlockCipher algorithm with CBC. The length of the sequence to encrypt must be at least 16 bytes.
        • CM_CRYPT_AES_DEC_CBC executes the indirect decryption using the AES BlockCipher algorithm with CBC. The length of the sequence to decrypt must be at least 16 bytes.
        • CM_CRYPT_AES_ENC_CBC_DIRECT executes the encryption using the original AES BlockCipher algorithm with CBC. It does not use any CodeMeter license, therefore use NULL for hcmse. The AES key has to be placed in mabDirectAesKey, the initialization vector in mabInitKey - both see CMBASECRYPT2.
        • CM_CRYPT_AES_DEC_CBC_DIRECT executes the decryption using the original AES BlockCipher algorithm with CBC. It does not use any CodeMeter license, therefore use NULL for hcmse. The AES key has to be placed in mabDirectAesKey, the initialization vector in mabInitKey - both see CMBASECRYPT2.
        cmCryptSim2 - sets some needed data for the en-/decryption process (see CMCRYPTSIM2).
        pvDest - contains the data to en-/decrypt.
        Returns:
        This function returns the number of en-/decrypted bytes. If an error occurred 0 will be returned.
      • cmCryptEcies

        public static int cmCryptEcies​(byte[] pbPublicKey,
                                       byte[] pbData)
        CmCryptEcies encrypts a given sequence with the standard ECIES algorithm. This method is a helper function to use the complete CodeMeter API funtionality.
        Parameters:
        pbPublicKey - contains the public key of the other side.
        pbData - contains the data to encrypt.
        Returns:
        This method returns the number of en-/decrypted bytes. If an error occurred 0 will be returned.
      • cmCalculatePioCoreKey

        public static int cmCalculatePioCoreKey​(long jHandle,
                                                CodeMeter.CMPIOCK pcmPioCK,
                                                byte[] pbPioCK)
        CmCalculatePioCoreKey calculates the Product Item Option Core Key (PIOCK) from the given data.

        Remark:
        This function is only for Licensor Site because a FSB is needed!

        Parameters:
        jHandle - contains a handle opened with CmAccess() (must be an Entry Access).
        pcmPioCK - contains a CMPIOCK structure containing the needed data for the PIOCK creation.
        pbPioCK - contains the length of the pbPioCK buffer.
        Returns:
        This method returns CM_BLOCK_SIZE (currently 16) if the creation of the PIOCK was successful. If an error occurred 0 is returned.
      • cmGetSecureData

        public static int cmGetSecureData​(long jHandle,
                                          CodeMeter.CMSECUREDATA cmSecureData,
                                          CodeMeter.CMENTRYDATA cmEntryData)
        CmGetSecureData reads encrypted Extended Protected Data or Hidden Data from a CmContainer entry. The parameter for the encryption are set in a CMSECUREDATA structure. The encrypted data is returned in a CMENTRYDATA structure. The retrieved encrypted data has to be decrypted individually.

        Remark:
        For Hidden Data, the Hidden Data Access Code (HDAC) must specified and match the stored value.

        Parameters:
        jHandle - contains a handle opened by CmAccess (must be Entry Access).
        cmSecureData - contains a CMSECUREDATA structure setting the parameters for the data to be encrypted.
        cmEntryData - contains a CMENTRYDATA receiving the encrypted data.
        Returns:
        The return value contains the number of bytes containing the plain data returned encryptedly in CMENTRYDATA::mabData. If an error occurred 0 is returned.
      • cmGetPioDataKey

        public static boolean cmGetPioDataKey​(byte[] pabPiodkDest,
                                              byte[] pabPioCk,
                                              byte[] pabPioEk)
        CmGetPioDataKey calculates the Product Item Option Data Key (PIODK) from the Product Item Option Encryption Key (PIOEK) and the Product Item Option Core Key (PIOCK).
        Parameters:
        pabPiodkDest - points to a memory block of 16 bytes which receives the calculated PIODK.
        pabPioCk - points to the input PIOCK.
        pabPioEk - points to the input PIOEK.
        Returns:
        This method returns true if the calculation executed successfully - false if not.
      • cmDecryptPioData

        public static boolean cmDecryptPioData​(byte[] abDest,
                                               byte[] abPiodkDest)
        CmDecryptPioData decrypts a given encypted HiddenData sequence using the Product Item Option Data Key (PIODK).
        Parameters:
        abDest - points to the data received by CmGetSecureData to be decrypted in this buffer.
        abPiodkDest - points to the input Product Item Option Decryption Key (PIODK) controlling the decryption.
        Returns:
        This method returns '1' if the decryption was successful - '0' if not.
      • cmGetBoxContents

        public static int cmGetBoxContents​(long jHandle,
                                           long flCtrl,
                                           long ulFirmCode,
                                           CodeMeter.CMBOXINFO cmBoxInfo,
                                           CodeMeter.CMBOXENTRY[] cmBoxEntry)
        This function returns the entries of a CmContainer.

        Remarks:
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        jHandle - contains a handle opened by CmAccess (can be Box Access or Entry Access).
        flCtrl - contains one of the following entries:
        • CM_GBC_FI: All entries returned must match the Firm Item provided in ulFirmCode.
        • CM_GBC_BOX: All entries returned must match the CmContainer properties provided in pcmBoxInfo.
        • CM_GBC_ALLENTRIES: All entries of all connected CmContainers available at jHandle will be returned.
        The above flags can be or'ed with
        • CM_GBC_USELOCALTIME: Returns the time values using the local time zone instead of UTC.
        The flags CM_GBC_FI and CM_GBC_BOX can be combined. If the value of ulFirmCode or pcmBoxInfo is not relevant for the desired flag operation the value is ignored.
        ulFirmCode - contains the Firm Code of the Firm Item the returned entries should have (used with CM_GBC_FI flag).
        cmBoxInfo - describes, which CmContainer the entries should be returned from (used with CM_GBC_BOX flag).
        cmBoxEntry - contains an array of CMBOXENTRY structures.
        Returns:
        The number of found entries is returned. If the number is larger than cbBoxEntry, the array in pcmBoxEntry is too small. In this case only cbBoxEntry entries are stored in pcmBoxEntry. To get the rest call the function with the correct array length again. If the array is to small the error code CMERROR_BUFFER_OVERFLOW is set. If 0 is returned then no entry was found and error code CMERROR_NO_ENTRY_NOT_FOUND is set.
      • cmGetBoxContents2

        public static int cmGetBoxContents2​(long jHandle,
                                            long flCtrl,
                                            long ulFirmCode,
                                            CodeMeter.CMBOXINFO cmBoxInfo,
                                            CodeMeter.CMBOXENTRY2[] cmBoxEntry)
        This function returns the entries of a CmContainer.

        Remarks:
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        jHandle - contains a handle opened by CmAccess / CmAccess2 (can be Box Access, Entry Access or Subsystem Access).
        flCtrl - flCtrl contains one of the following entries:
        • CM_GBC_FI: All entries returned must match the Firm Item provided in ulFirmCode.
        • CM_GBC_BOX: All entries returned must match the CmContainer properties provided in pcmBoxInfo.
        • CM_GBC_ALLENTRIES: All entries of all connected CmContainers available at jHandle will be returned.
        The above flags can be or'ed with
        • CM_GBC_USELOCALTIME: Returns the time values using the local time zone instead of UTC.
        The flags CM_GBC_FI and CM_GBC_BOX can be combined. If the value of ulFirmCode or pcmBoxInfo is not relevant for the desired flag operation the value is ignored.
        ulFirmCode - contains the Firm Code of the Firm Item the returned entries should have (used with CM_GBC_FI flag).
        cmBoxInfo - contains the CmContainer information of the CmContainer the entries should be returned from (used with CM_GBC_BOX flag).
        cmBoxEntry - contains an array of CMBOXENTRY2 structures.
        Returns:
        The number of found entries is returned. If the number is larger than cbBoxEntry, the array in pcmBoxEntry is too small. In this case only cbBoxEntry entries are stored in pcmBoxEntry. To get the rest call the function with the correct array length again. If the array is to small the error code CMERROR_BUFFER_OVERFLOW is set. If 0 is returned then no entry was found and error code CMERROR_NO_ENTRY_NOT_FOUND is set.
      • cmGetBoxes

        public static int cmGetBoxes​(long jHandle,
                                     long idPort,
                                     CodeMeter.CMBOXINFO[] pcmBoxInfo)
        CmGetBoxes returns all connected CmContainers of the given port.

        Remarks:
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        jHandle - contains the handle opened by CmAccess (must be Subsystem Access).
        idPort - contains one of the following commands:
        • CM_GB_ALLPORTS: All available ports will be scanned.
        • CM_GB_USB: USB ports will be scanned.
        • CM_GB_ACT: CodeMeterAct licenses will be returned.
        pcmBoxInfo - contains an array of CMBOXINFO structures.
        Returns:
        The number of found CmContainers is returned. If the size of pcmBoxInfo was too small, then in this case only some elements were stored in pcmBoxInfo. To get the remaining call the function with the correct array length again. If the array is to small error code CMERROR_BUFFER_OVERFLOW is set. If 0 is returned then no entry was found and error code CMERROR_BOX_NOT_FOUND is set.
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXCONTROL cmBoxControl)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXCONTROL fills CMBOXCONTROL structure specified in cmBoxControl.
        cmBoxControl - contains a CMBOXCONTROL object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMCOMMUNICATION cmCommunication)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.
        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_COMMUNICATION fills CMCOMMUNICATION structure specified in cmCommunication.
        cmCommunication - contains a CMCOMMUNICATION object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMSECURITYVERSION cmSecurityVersion)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_SECURITYVERSION fills CMSECURITYVERSION structure specified in cmBoxControl.
        cmSecurityVersion - contains a CMSECURITYVERSION object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXINFO cmBoxInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXINFO fills CMBOXINFO structure specified in cmBoxInfo.
        cmBoxInfo - contains a CMBOXINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXSECURITY cmBoxSecurity)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXSECURITY fills CMBOXSECURITY structure specified in cmBoxSecurity.
        cmBoxSecurity - contains a CMBOXSECURITY object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXTIME cmBoxTime)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXTIME fills CMBOXTIME structure specified in cmBoxTime.
        cmBoxTime - contains a CMBOXTIME object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
        Throws:
        java.lang.Exception
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXENTRY cmBoxEntry)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_ENTRYINFO fills CMBOXENTRY structure specified in cmBoxEntry.
        cmBoxEntry - contains a CMBOXENTRY object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXENTRY2 cmBoxEntry2)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_ENTRYINFO2 fills CMBOXENTRY2 structure specified in cmBoxEntry2.
        cmBoxEntry2 - contains a CMBOXENTRY2 object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMENTRYDATA[] cmEntryData)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_ENTRYDATA fills a CMENTRYDATA array specified in cmEntryData. If more than one item is available, an array with matching or larger size must be passed.
        cmEntryData - contains an array of CMENTRYDATA objects for storing the result. This parameter must not be null!
        Returns:
        The return value always contains the real number of bytes returned in pvDest. If an error occurred the return value is 0. If cmEntryData does not contain enough entries, the number of required array elements will be returned. In this case the return value is larger than cmEntryData.length and the error code CMERROR_BUFFER_OVERFLOW is set.
      • cmGetInfo

        public static java.lang.String cmGetInfo​(long jHandle,
                                                 long flCtrl)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_PITEXT
        Returns:
        The return value contains the string stored in PIO 'Text'. If an error occurred the returned string is null.
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMINTERNALENTRYINFO[] cmInternalEntryInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_INTERNALENTRYINFO fills CMINTERNALENTRYINFO structure specified in cmInternalEntryInfo.
        cmInternalEntryInfo - contains a CMINTERNALENTRYINFO vector for storing the result. If this parameter is null, then only the number of entries is returned.
        Returns:
        Returns the number of found entries.
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMMEMINFO cmMemInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_MEMINFO fills a CMMEMINFO object specified in cmMemInfo.
        cmMemInfo - contains an CMMEMINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMMEMINFO2 cmMemInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_MEMINFO2 fills a CMMEMINFO2 object specified in cmMemInfo.
        cmMemInfo - contains an CMMEMINFO2 object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMSYSTEM cmSystem)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_SYSTEM fills CMSYSTEM structure specified in cmSystem.
        cmSystem - contains a CMSYSTEM object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    byte[] signedList)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_SIGNEDLIST fills byte buffer with a signed list of an entry passed in signedList.
        signedList - contains a byte array for storing the result. This parameter must not be null!
        Returns:
        Returns number of bytes written in signedList or 0 if an error occured. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMBOXSTATUS cmBoxStatus)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_BOXSTATUS fills CMBOXSTATUS object.
        cmBoxStatus - contains a CMBOXSTATUS object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMUSBCHIPINFO cmUsbInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_USBCHIPINFO fills a CMUSBCHIPINFO object.
        cmUsbInfo - contains a CMUSBCHIPINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMSIGNEDTIME cmSignedTime)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_SIGNEDTIME fills CMSIGNEDTIME object specified in cmSignedTime.
        cmSignedTime - contains a CMSIGNEDTIME object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMCHIPINFO cmChipInfo)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_CHIPINFO fills CMCHIPINFO structure specified in pvDest.
        cmChipInfo - contains a CMCHIPINFO object for storing the result. This parameter must not be null!
        Returns:
        Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMNETINFOCLUSTER[] cmNetInfoCluster)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_NETINFO_CLUSTER fills an array of CMNETINFOCLUSTER structures specified in cmNetInfoCluster.
        cmNetInfoCluster - is an array of CMNETINFOCLUSTER objects for storing the result. This parameter must not be null!
        Returns:
        The return value always contains the number of records available for cmNetInfoCluster.
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMNETINFOUSER[] cmNetInfoUser)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_NETINFO_USER fills CMNETINFOUSER structure specified in cmNetInfoUser.
        cmNetInfoUser - is an array of CMNETINFOUSER objects for storing the result. This parameter must not be null!
        Returns:
        The return value always contains the number of records available for cmNetInfoUser
      • cmGetInfo

        public static int cmGetInfo​(long jHandle,
                                    long flCtrl,
                                    CodeMeter.CMNETINFOUSER_EXT[] cmNetInfoUserExt)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_NETINFO_USER_EXT fills CMNETINFOUSER_EXT structure specified in cmNetInfoUserExt.
        cmNetInfoUserExt - is an array of CMNETINFOUSER_EXT objects for storing the result. This parameter must not be null!
        Returns:
        The return value always contains the number of records available for cmNetInfoUser
      • cmGetInfo

        public static boolean cmGetInfo​(long jHandle,
                                        long flCtrl,
                                        CodeMeter.CMCREDENTIAL cmCredential)
        CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

        Remarks
        This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

        Parameters:
        flCtrl - The following flags can be set:
        • CM_GEI_CREDENTIAL fills the CMCREDENTIAL structure specified in cmCredential.
          cmCredential - contains a CMCREDENTIAL object for storing the result. This parameter must not be null!
          Returns:
          Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static int cmGetInfo​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMENABLING_ENABLEBLOCKITEM_LIST[] enableBlockItems)
          CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

          Remarks
          This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

          Parameters:
          flCtrl - The following flags can be set:
          • fills CMENABLING_ENABLEBLOCKITEM_LIST structure specified in pvDest. If more than one item is available, an array with matching or larger size must be passed.
          enableBlockItems - is an array of CMENABLING_ENABLEBLOCKITEM_LIST objects for storing the result.
          Returns:
          The return value always contains the number of records available for cmEnablingContext. In case the specified array is too short or null, then the number of available records is returned and the error code is set to CodeMeter.CMERROR_BUFFER_OVERFLOW.
        • cmGetInfo

          public static int cmGetInfo​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMENABLING_CONTEXT[] enableContext)
          CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

          Remarks
          This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_ENABLEINFO fills an array of CMENABLING_CONTEXT structures with enabling information matching to the used handle hcmse.
          enableContext - is an array of CMENABLING_CONTEXT objects for storing the result.
          Returns:
          The return value always contains the number of records available for cmEnablingContext. In case the specified array is too short or null, then the number of available records is returned and the error code is set to CodeMeter.CMERROR_BUFFER_OVERFLOW.
        • cmGetInfo

          public static int cmGetInfo​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMENABLING_ENABLELOOKUPENTRY[] enableLookupEntries)
          CmGetInfo returns data related to the opened entry. The entry data itself is not returned.

          Remarks
          This function does not really scan all available or wanted ports for connected CmDongles because of CodeMeter.exe's Plug&Play mechanism and the implementation of storing all boxes and their content in internal lists. The function call checks the internal lists only and returns the matching data.

          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_ENABLELOOKUPITEMS_FI fills CMENABLING_ENABLELOOKUPENTRY structure specified in pvDest. The Enable Lookup Items are stored in the FirmItem area of the access handle. If more than one item is available, an array with matching or larger size must be passed.
          • CM_GEI_ENABLELOOKUPITEMS_PI fills CMENABLING_ENABLELOOKUPENTRY structure specified in pvDest. The Enable Lookup Items are stored in the ProductItem area of the access handle. If more than one item is available, an array with matching or larger size must be passed.
          enableLookupEntries - is an array of CMENABLING_ENABLELOOKUPENTRY objects for storing the result.
          Returns:
          The return value always contains the number of records available for enableLookupEntries or 0 if an error ocurred. In case the specified array is too short or null, then the number of available records is returned and the error code is set to CodeMeter.CMERROR_BUFFER_OVERFLOW.
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMBORROWCLIENT cmBorrowClient)
          Retrieve information concerning the License Borrowing client
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_BORROWCLIENT fills CMBORROWCLIENT structure specified in cmBorrowClient.
          cmBorrowClient - contains a CMBORROWCLIENT object for storing the result.
          Returns:
          Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMBORROWDATA cmBorrowData)
          Retrieve information concerning the License Borrowing client
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_BORROWDATA fills CMBORROWDATA structure specified in cmBorrowData.
          cmBorrowData - contains a CMBORROWDATA object for storing the result.
          Returns:
          Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static int cmGetInfo​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMBORROWITEM[] cmBorrowItems)
          Retrieve information concerning the License Borrowing client
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_BORROWITEMS fills CMBORROWITEM array specified in cmBorrowItems..
          cmBorrowItems - contains a CMBORROWITEM array for storing the result.
          Returns:
          Returns the number of available items. If an error occurred the return value is 0, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMSYSTEMSTATUS pvDest)
          Retrieve information concerning the current system status
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_SYSTEMSTATUS fills CMSYSTEMSTATUS specified in pvDest.
          pvDest - contains a CMSYSTEMSTATUS for storing the result.
          Returns:
          Returns the number of available items. If an error occurred the return value is 0, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMLTTRANSFEROPTIONS pvDest)
          Retrieve information concerning the transfer options
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_LTTRANSFEROPTIONS fills CMLTTRANSFEROPTIONS specified in pvDest.
          pvDest - contains a CMLTTRANSFEROPTIONS for storing the result.
          Returns:
          Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode()
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMNAMEDUSER pvDest)
          Retrieve information concerning the named user license
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_NAMEDUSER fills CMNAMEDUSER specified in pvDest.
          pvDest - contains a CMNAMEDUSER for storing the result.
          Returns:
          Returns true on success. If an error occurred the return value is false, the error can be retrieved using cmGetLastErrorCode()
        • cmGetInfo

          public static int cmGetInfo​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMPIENTRYBASE[] items)
          Retrieve information concerning the CMPIENTRYBASE.
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_LISTALLPI fills items array specified in items.
          items - contains a CMPIENTRYBASE array for storing the result.
          Returns:
          Returns the number of available items. If an error occurred the return value is 0, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static int cmGetInfo​(long jHandle,
                                      long flCtrl,
                                      CodeMeter.CMLTHISTORY[] historyItems)
          Retrieve information concerning the CMLTHISTORY.
          Parameters:
          flCtrl - The following flags can be set:
          • CM_GEI_LTHISTORY fills historyItems array specified in historyItems.
          historyItems - contains a CMLTHISTORY array for storing the result.
          Returns:
          Returns the number of available items. If an error occurred the return value is 0, the error can be retrieved using cmGetLastErrorCode();
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMRESETTIME cmresettime)
          Returns the Reset Time. The Reset Time is the cumulated time of the difference between the Box Time and the Certified Time for cases in which the Certified Time has been smaller than the Box Time and a time reset has been performed.
          Parameters:
          jHandle -
          flCtrl -
          cmresettime - holds the reset time as long value in cmResetTime
          Returns:
          Returns true if the struct was filled
        • cmGetInfo

          public static boolean cmGetInfo​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMCLOUDLICENSEINFO cmcloudlicenseinfo)
          Returns the cloud license info
          Parameters:
          jHandle -
          flCtrl -
          cmcloudlicenseinfo -
          Returns:
          Returns true if the struct was filled
        • cmGetLicenseInfo

          public static int cmGetLicenseInfo​(long jHandle,
                                             CodeMeter.CMLICENSEINFO[] pcmLicenseInfo)
          Returns all available licenses stored in a license file. This method returns all available licenses stored in a license file (CmLicensor/CmFirm.wbc) on Licensor Site. This method is not yet implemented.
          Parameters:
          jHandle - contains the handle opened by by CmAccess (must be Subsystem Access).
          pcmLicenseInfo - contains pointer to an array of CMLICENSEINFO elements.
          Returns:
          The return value always contains the real number of licenses returned in pcmLicenseInfo. If the array in pcmLicenseInfo does not contain not enough elements, the number of available licenses will be returned. In this case the return value is larger than the cbNumberOfLicenses parameter and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmGetServers

          public static int cmGetServers​(long flCtrl,
                                         java.lang.StringBuffer servers)
          Searches the local network for running CodeMeter.exe processes having a CmContainers attached.

          CmGetServers searches the local network (CmLAN) for running CodeMeter.exe processes having a CmContainer attached. Processess without connected CmContainers are not returned because there is no demand for that. If a server search list exists all names of the list will be checked if a CodeMeter.exe process is running and a CmContainer is connected. If no server search list exits a UDP search in the local network will be performed.

          Remarks:
          The flags CM_GS_SINGLE and CM_GS_SINGLE_FIRST are implemented in the calling driver (on Windows: WibuCm32.dll) only.

          Parameters:
          flCtrl - contains one of two possible flags to return the server identity:
          • CM_GS_NAME returns the computers using their names in the lookup process.
          • CM_GS_IPADDR: returns the computers using their IP address in the lookup process.
          The found server list can be returned by two kinds of calling mechanisms:
          • CM_GS_LIST returns all found servers per functioncall. The computer names / IP addresses are separated by a "|".
          • CM_GS_SINGLE returns only one computer per function call. The next call will return the next computer stored internally. If no server is left in the list FALSE is returned and error code CMERROR_SERVER_NOT_FOUND is set. To restart the output at the first internally stored server the flag CM_GS_SINGLE_FIRST must be used.
          • CM_GS_SINGLE_FIRST: must be set at the first call to get a single computer. This flag sets the internal pointer to the beginning of the list. This flag must always be set before a call using CM_GS_SINGLE.
          servers - contains an output buffer.
          Returns:
          -1=if an error occurred, or 0...n for the number of stored network servers in 'servers'
        • cmGetVersion

          public static long cmGetVersion​(long jHandle)
          CmGetVersion returns the full version of the requested CodeMeter modules.

          CmGetVersion returns the full version of the requested CodeMeter modules.

          The return value of the version has the format:
          [((VERSION & 0xff) << 24) | ((SUBVERSION & 0xff) << 16) | ((BUILD & 0x0f) << 12) | (COUNT & 0x0fff)]
          The itemized values are the Version, Subversion, Build and Count.

          Parameters:
          jHandle - contains a handle opened by CmAccess (can be Box Access or Entry Access).
          Returns:
          Depends on jHandle, the version of the local (if jHandle==0) or network calling driver is returned.
        • cmIsOlderVersion

          public static boolean cmIsOlderVersion​(int majorCheck,
                                                 int minorCheck,
                                                 int buildCheck)
          CmIsOlderVersion checks if the used CodeMeter version is older than the version specified via the method's arguments. The depth is up to build number.
        • cmGetLastErrorCode

          public static int cmGetLastErrorCode()
          CmGetLastErrorCode returns the last set error code.

          CmGetLastErrorCode returns the last set error code. Every API function call sends a request from the calling driver (on Windows: WibuCm32.dll) directly to CodeMeter.exe. With the answer CodeMeter.exe always sends the last occurred error code back to the calling driver. At this location the error code is stored in a global variable declared as Thread Local Storage (TLS). CmGetLastErrorCode returns this variable. If a problem in the calling driver occurs, an error code is also set at this global variable. Because of using Thread Local Storage the calling driver is thread safe.

          Returns:
          The return value contains the error code set from the last called API function.
        • cmGetLastErrorText

          public static java.lang.String cmGetLastErrorText()
          Return the last occurred CodeMeter-API error as an error string.

          This method returns the error text of the last set error. The language of the text is returned in the current set system language or if this is not available in English.

          Returns:
          The last error text as String.
        • cmSetLastErrorCode

          public static void cmSetLastErrorCode​(int idError)
          CmSetLastErrorCode sets an error code into internal local buffer.

          CmSetLastErrorCode sets an error code into the internal global error code variable.

          Parameters:
          idError - specifies the error code to set.
        • cmReserveFirmItem

          public static boolean cmReserveFirmItem​(long jHandle,
                                                  long ulFirmCode,
                                                  CodeMeter.CMRESERVEFI pcmReserveFi)
          CmReserveFirmItem reserves a temporary Firm Item with a random Session ID and reserves additional memory in the CmDongle for subsequent Firm Item and Product Item programming operations.
          Parameters:
          jHandle - contains a handle opened by CmAccess. Can be Box Access or Entry Access.
          ulFirmCode - contains the Firm Code of the Firm Item to be programmed into the CmDongle.
          pcmReserveFi - receives the Firm Item# Reference to the reserved memory in the CmDongle and the Session ID to program a Firm Item.
          Returns:
          This method return 'true' if the memory was reserved in the CmDongle and the reserved Firm Item Reference and the Session ID were returned - 'false' if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMTIME pvPio)

          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.

          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          Returns:
          This method return 'true' if the entry was added to the security sequence - 'false' if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          long pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_MAINTENANCEPERIOD pvPio)

          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.

          Remarks:
          "1" if the entry was added to the security sequence - "0" if not.

          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_MAINTENANCEPERIOD adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_MAINTENANCEPERIOD structure describing this Product Item Option. The firmware version has to be at minimum 1.18.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          Returns:
          This method return 'true' if the entry was added to the security sequence - 'false' if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_PRODUCTCODE pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_PROTDATA pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_EXTPROTDATA pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_HIDDENDATA pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_SECRETDATA pvPio)
          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.
          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option.
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          The following flags must be or'ed with the flags above in special situations.
          • CM_CPIO_ADD: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to add a Product Item. This flag sets the add mode for creating the PIO. This flag can also be set to switch from update mode to add mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_UPDATE: The first call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set if the programming sequence is intended to update a Product Item. This flag sets the update mode for creating the PIO. This flag can also be set to switch from add mode to update mode. The first call must always be the addition of a Product Code (CM_CPIO_PRODUCTCODE).
          • CM_CPIO_RELATIVE: This option specifies that the updated value should be modified relatively. It can only be combined with CM_CPIO_ACTTIME, CM_CPIO_EXPTIME or CM_CPIO_UNITCOUNTER. In these cases the set value is always an unsigned long value, specifying the relative value. The value can also be negative.
          • CM_CPIO_TERMINATE: The last call of CmCreateProductItemOption to concatenate a programming sequence must have this flag set to terminate the internal process.
          • CM_CPIO_DELETE_PIO: This flag can be combined with all CM_CPIO_... commands and implies that the set Product Item Option will be deleted. In this case pvPio can be null and cbPio can be 0.
          pvPio - contains a structure depending on the flCtrl flag (see above).
          Returns:
          "true" if the entry was added to the security sequence - "false" if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_USERDATA pvPio)

          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.

          Remarks:
          "1" if the entry was added to the security sequence - "0" if not.

          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          Returns:
          This method return 'true' if the entry was added to the security sequence - 'false' if not.
        • cmCreateProductItemOption

          public static boolean cmCreateProductItemOption​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMCPIO_TEXT pvPio)

          CmCreateProductItemOption() concatenates a security sequence for adding or updating a Product Item Option. This function must be called once or more before a CmCreateSequence() call to add or update one or more Product Item Options.

          Remarks:
          "1" if the entry was added to the security sequence - "0" if not.

          Parameters:
          jHandle - contains a handle opened by CmAccess(). The access mode must be Entry Access to a FSB Entry. The handle is related to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_CPIO_PRODUCTCODE adds a Product Code to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PRODUCTCODE structure.
          • CM_CPIO_FEATUREMAP adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value describing this Product Item Option.
          • CM_CPIO_MAINTENANCEPERIOD adds a Feature Map to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_MAINTENANCEPERIOD structure describing this Product Item Option. The firmware version has to be at minimum 1.18.
          • CM_CPIO_EXPTIME adds an Expiration Date to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_ACTTIME adds an Activation Time to the internally created structure to create a Product Item. pvPio is pointing to a CMTIME structure describing this Product Item Option.
          • CM_CPIO_UNITCOUNTER adds a Unit Counter to the internally created structure to create a Product Item. pvPio is pointing to a ULONG value value describing this Product Item Option.
          • CM_CPIO_PROTDATA adds a Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_PROTDATA structure describing this Product Item Option.
          • CM_CPIO_EXTPROTDATA adds an Extended Protected Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_EXTPROTDATA structure value describing this Product Item Option.
          • CM_CPIO_HIDDENDATA adds a Hidden Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_HIDDENDATA structure describing this Product Item Option
          • CM_CPIO_SECRETDATA adds a Secret Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_SECRETDATA structure describing this Product Item Option.
          • CM_CPIO_USERDATA adds User Data to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_USERDATA structure describing this Product Item Option.
          • CM_CPIO_TEXT adds Text to the internally created structure to create a Product Item. pvPio is pointing to a CMCPIO_TEXT structure describing this Product Item Option.
          • CM_CPIO_DELETEALL deletes all Product Item Options of the currently accessed Product Item. The Product Code is the only option available after this task. In this case pvPio can be null and cbPio can be 0.
          • CM_CPIO_CHANGEDEPENDENCY changes the dependency flags of the Product Item Options created after this command. pvPio is pointing to a ULONG value value describing this Product Item Option. The ULONG value contains an or'ed combination of the flags CM_PIOPC_DATA (data dependency), CM_PIOPC_FUC (Firm Update Counter dependency) and CM_PIOPC_SERIAL (Serial Number dependency).
          Returns:
          This method return 'true' if the entry was added to the security sequence - 'false' if not.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_ADD_FIRMITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmDongle the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_DELETE_FIRMITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_ADD_PRODUCTITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_DELETE_PRODUCTITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_BOXLOCK pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static boolean cmCreateSequence​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMCREATEITEM pcmCreateItem,
                                                 CodeMeter.CMPROGRAM_UPDATE_FIRMITEM pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static byte[] cmCreateSequence​(long jHandle,
                                                long flCtrl,
                                                CodeMeter.CMCREATEITEM pcmCreateItem,
                                                CodeMeter.CMENABLING_WRITEADD pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCreateSequence

          public static byte[] cmCreateSequence​(long jHandle,
                                                long flCtrl,
                                                CodeMeter.CMCREATEITEM pcmCreateItem,
                                                CodeMeter.CMENABLING_WRITEDELETE pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the calculated sequence stored. If an error occurred null is returned.
        • cmCreateSequence

          public static byte[] cmCreateSequence​(long jHandle,
                                                long flCtrl,
                                                CodeMeter.CMCREATEITEM pcmCreateItem,
                                                CodeMeter.CMENABLING_WRITEATTACHDETACH pvCtrl)
          CmCreateSequence calculates a signature to program any kind of entry in a CmContainer. All security mechanisms are handled by this function. The needed security library (on Windows: CmSecurityLS32.dll), licensor file (CmLicensor.wbc) and Firm Security Box (FSB) must be available. CmCreateSequence can calculate the security sequences for the following tasks:
          • Adding a new Firm Item into a CmContainer.
          • Updating an existing Firm Item in a CmContainer.
          • Deleting an existing Firm Item from a CmContainer.
          • Adding a new Product Item to an existing Firm Item in a CmContainer.
          • Updating an existing Product Item in a CmContainer.
          • Deleting an existing Product Item from a CmContainer.
          • (Un-)Locking a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The Access Mode must be Entry Access to a FSB Entry for a regular license. The handle is related to a CmLocal or a CmLAN subsystem with a connected Firm Security Box (FSB). If the license is an evaluation license not needing any security mechanisms like a FSB the access can be Box Access. To update the IFI of a local CmContainer the access can also be Box Access. The access can be performed to the CmContainer to be programmed or updated. A matching entry in the CmLicensor/CmFirm.wbc file has to exist in both cases.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM calculates the sequence for adding a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM class structure.
          • CM_GF_UPDATE_FIRMITEM calculates the sequence for updating a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM class structure.
          • CM_GF_DELETE_FIRMITEM calculates the sequence for deleting a Firm Item from a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM class structure.
          • CM_GF_ADD_PRODUCTITEM calculates the sequence for adding a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM class structure.
          • CM_GF_UPDATE_PRODUCTITEM calculates the sequence for updating a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM class structure.
          • CM_GF_DELETE_PRODUCTITEM calculates the sequence for deleting a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM class structure.
          • CM_GF_SET_BOXLOCK calculates the sequence for locking or unlocking a complete CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXLOCK class structure.
          • CM_GF_ADD_ENABLEBLOCK calculates the sequence for adding a new Enable Block Item to a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEADD class structure.
          • CM_GF_UPDATE_ENABLEBLOCK calculates the sequence for updating an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEUPDATE class structure.
          • CM_GF_DELETE_ENABLEBLOCK calculates the sequence for deleting an existing Enable Block Item from a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEDELETE class structure.
          • CM_GF_ATTACH_ENABLEBLOCK calculates the sequence for attaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          • CM_GF_DETACH_ENABLEBLOCK calculates the sequence for detaching an existing Enable Block Item in a Firm Item. pvCtrl is pointing to a CMENABLING_WRITEATTACHDETACH class structure.
          pcmCreateItem - points to a CMCREATEITEM structure containing additional information for sequence calculation. The parameter firmUpdateCounter will contain the updated value after the programming sequence is calculated.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          Returns:
          The return value contains the length of the calculated sequence stored in pvCtrl. If an error occurred 0 is returned. If the size of pvCtrl is smaller than the return value then no data in pvCtrl is set and the error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_ADD_FIRMITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_UPDATE_FIRMITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_DELETE_FIRMITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_ADD_PRODUCTITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_UPDATE_PRODUCTITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_DELETE_PRODUCTITEM pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_BOXCONTROL pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_BOXLOCK pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          byte[] pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMENABLING_WRITEDELETE pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ACTIVATE_FIELDUPDATE activates a Field Update. The input parameters are stored in a CMACTIVATE_FIELDUPDATE structure.
          • CM_GF_EXECUTE_FIELDUPDATE executes a Field Update. The firmware is stored in a byte array.
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMENABLING_WRITEATTACHDETACH pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ACTIVATE_FIELDUPDATE activates a Field Update. The input parameters are stored in a CMACTIVATE_FIELDUPDATE structure.
          • CM_GF_EXECUTE_FIELDUPDATE executes a Field Update. The firmware is stored in a byte array.
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMPROGRAM_BOXPASSWORD pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ACTIVATE_FIELDUPDATE activates a Field Update. The input parameters are stored in a CMACTIVATE_FIELDUPDATE structure.
          • CM_GF_EXECUTE_FIELDUPDATE executes a Field Update. The firmware is stored in a byte array.
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          java.lang.String pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_SET_BOXPASSWORD2 passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmProgram

          public static boolean cmProgram​(long jHandle,
                                          long flCtrl,
                                          CodeMeter.CMENABLING_CONTEXT pvCtrl,
                                          byte[] verify)
          CmProgram programs entries into a CmContainer. The programming can be one of the following tasks:
          • Adding a new Firm Item.
          • Updating an existing Firm Item.
          • Deleting an existing Firm Item.
          • Adding a new Product Item to an existing Firm Item.
          • Updating an existing Product Item.
          • Deleting an existing Product Item.
          • Setting a new value in the Box Control register of a CmContainer.
          • Programming a new Firm Key into a FSB entry.
          • Programming a new Userkey into a CmContainer.
          Parameters:
          jHandle - contains a handle opened by CmAccess. The access mode can be Box Access, Firm Item Access or Entry Access. The required access mode depends on the operation set in flCtrl. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer. This CmContainer will be used for programming.
          flCtrl - contains one of the following commands:
          • CM_GF_ADD_FIRMITEM adds a Firm Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_FIRMITEM structure. jHandle must be Box Access.
          • CM_GF_UPDATE_FIRMITEM updates a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_DELETE_FIRMITEM deletes a Firm Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_FIRMITEM structure. jHandle must be Firm Item Access or Entry Access.
          • CM_GF_ADD_PRODUCTITEM adds a Product Item into a CmContainer. pvCtrl is pointing to a CMPROGRAM_ADD_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_UPDATE_PRODUCTITEM updates a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_UPDATE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_DELETE_PRODUCTITEM deletes a Product Item in a CmContainer. pvCtrl is pointing to a CMPROGRAM_DELETE_PRODUCTITEM structure. jHandle must be Entry Access.
          • CM_GF_SET_BOXCONTROL sets the control flag of the CmContainer. pvCtrl is pointing to a CMPROGRAM_BOXCONTROL structure.
          • CM_GF_SET_FIRMKEY programs a Firm Key into an already programmed FSB entry in a CmContainer. pvCtrl is pointing to a 32 element byte array. jHandle must be Entry Access.
          • CM_GF_SET_USERKEY programs a UserKey into a CmContainer. jHandle can be Box Access. pvCtrl is pointing to a CMPROGRAM_USERKEY structure.
          • CM_GF_ADD_ENABLEBLOCK adds a new Enable Block Item to a Firm Item. The input parameters are stored in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_GF_UPDATE_ENABLBLOCK updates the content of an existing Enable Block Item. The input parameters are stored in a byte array (pointer to unsigned char). The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DELETE_ENABLBLOCK deletes an existing Enable Block Item in a Firm Item. The input parameters are stored in a CMENABLING_WRITEDELETE structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ATTACH_ENABLBLOCK attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_DETACH_ENABLBLOCK detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are stored in a CMENABLING_WRITEATTACHDETACH structure. The return value for this flag is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_GF_ACTIVATE_FIELDUPDATE activates a Field Update. The input parameters are stored in a CMACTIVATE_FIELDUPDATE structure.
          • CM_GF_EXECUTE_FIELDUPDATE executes a Field Update. The firmware is stored in a byte array.
          • CM_GF_SET_BOXPASSWORD passes the CmContainer password to the CodeMeter Runtime Server. If the CmContainer Password is passed using this option, no dialog will be opened to ask the user for the personal CmContainer password.
          • CM_GF_CHANGE_BOXPASSWORD changes the CmContainer Password in a CmContainer. The input parameters (old and new password) are stored in a CMPROGRAM_BOXPASSWORD structure.
          In addition the flag CM_PROG_DEFRAGMEM can be or'ed. This flag cleans up the memory of the CmContainer after the programming step has been performed.
          pvCtrl - contains a class structure depending on the flCtrl flag (see above).
          verify - contains a byte buffer receiving the verification sequence for the programmer. Except of the CM_GF_DELETE_FIRMITEM command this is a signed list command of the added/updated/deleted Firm Item (Signed List of the whole Firm Item). CM_GF_DELETE_FIRMITEM handles the creation of a verification sequence in the CmContainer internally. A CMVALIDATE_DELETEFI structure must be passed here. If the parameter is null (==>> cbVerify = 0) no verification sequence is returned. If the buffer is to small for the verification sequence the return value is larger than the size of the buffer than the error code CMERROR_BUFFER_OVERFLOW is set.
          Returns:
          If the programming task is executed successfully and if pvVerify is null then TRUE is returned, else FALSE is returned. If pvVerify contains enough memory the length of the signed list or a CMVALIDATE_DELETEFI structure is returned. If pvVerify does not contain enough memory, the number of required bytes will be returned. In this case the return value is larger than the size of verify and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmReadProfilingEntry

          public static java.lang.String cmReadProfilingEntry​(long jHandle,
                                                              long flCtrl,
                                                              java.lang.String entryName)
          CmReadProfilingEntry allows to read profiling entries and other information of an installed CodeMeter runtime. Currently, it returns the actual value of a profiling entry as string.
          Parameters:
          jHandle - contains a handle opened by CmAccess / CmAccess2. Has to be a handle on the local system of any type (e.g. Subsystem Access).
          If an access is directed to a remote CodeMeter server, the error CMERROR_WRONG_HANDLE_TYPE (115) is returned.
          flCtrl - is currently reserved for future extensions and should be set to a value of 0.
          entryName - contains the the name of the profiling entry as string, e.g. "ExePath". For available profiling entries see CodeMeter.ini or Server.ini.
          Accessing profiling entry values of child paths requires to specify the path using a backslash. For example, "HTTP\\RemoteRead" (the double backslash here corresponds to C syntax notation). If specifying a non-existing value or an invalid path, the error CMERROR_INVALID_PARAMETER (105) is returned.
          Returns:
          null if an error occured, or the String value of the requested CodeMeter Profiling entry. The maximum length of a value is 256 characters.
        • cmValidateEntry

          public static int cmValidateEntry​(long jHandle,
                                            long flCtrl,
                                            CodeMeter.CMBOXINFO pcmBoxInfo,
                                            CodeMeter.CMVALIDATE_DELETEFI pvValidate)
          CmValidateEntry validates a given sequence. This sequence can be a signature created by the deletion of a Firm Item or a signed list sequence.

          Remarks:
          The sequence to validate is usually created by CmProgram() or CmGetInfo()/CM_GEI_SIGNEDLIST.
          This function is for Licensor Site only because an FSB is required.

          Parameters:
          jHandle - contains a handle opened by CmAccess and must be Entry Access to a FSB Entry. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_VAL_SIGNEDLIST specifies that the passed sequence is a signed list.
          • CM_VAL_SIGNEDTIME specifies that the passed sequence is a CMSIGNEDTIME structure created by CmGetInfo()/CM_GEI_SIGNEDTIME.
          • CM_VAL_DELETE_FI specifies that the passed sequence is a CMVALIDATE_DELETEFI structure created by CmProgram()/CM_GF_DELETE_FIRMITEM.
          pcmBoxInfo - contains the CmStick information of the User's CmStick.
          pvValidate - contains the sequence to validate.
          Returns:
          The function returns '1' if the given sequence is valid and '0' if the sequence is invalid.
        • cmValidateEntry

          public static int cmValidateEntry​(long jHandle,
                                            long flCtrl,
                                            CodeMeter.CMBOXINFO pcmBoxInfo,
                                            CodeMeter.CMSIGNEDTIME pvValidate)
          CmValidateEntry validates a given sequence. This sequence can be a signature created by the deletion of a Firm Item or a signed list sequence.

          Remarks:
          The sequence to validate is usually created by CmProgram() or CmGetInfo()/CM_GEI_SIGNEDLIST.
          This function is for Licensor Site only because a FSB is required.

          Parameters:
          jHandle - contains a handle opened by CmAccess and must be Entry Access to a FSB Entry. The handle is connected to a CmLocal or a CmLAN subsystem with a connected CmContainer.
          flCtrl - contains one of the following commands:
          • CM_VAL_SIGNEDLIST specifies that the passed sequence is a signed list.
          • CM_VAL_SIGNEDTIME specifies that the passed sequence is a CMSIGNEDTIME structure created by CmGetInfo()/CM_GEI_SIGNEDTIME.
          • CM_VAL_DELETE_FI specifies that the passed sequence is a CMVALIDATE_DELETEFI structure created by CmProgram()/CM_GF_DELETE_FIRMITEM.
          pcmBoxInfo - contains the information of the User's CmContainer.
          pvValidate - contains the sequence to validate.
          Returns:
          The function returns '1' if the given sequence is valid and '0' if the sequence is invalid.
        • cmGetRemoteContext

          public static int cmGetRemoteContext​(java.lang.String strRacFile,
                                               long flCtrl,
                                               long jHandle,
                                               long[] pulFirmCodes)
          Get compressed Remote Context file.

          CmGetRemoteContext stores the content of a box into an encrypted and compressed Remote Context file (RTC-file).

          Parameters:
          strRacFile - contains a filename of the WibuCmRaC file.
          flCtrl - contains one of the following flags:
          • CM_RMT_OVERWRITE overwrites the WibuCmRaC file if it already exists.
          • CM_RMT_APPEND appends the context data to the WibuCmRaC file if it already exists.
          jHandle - contains a handle to the CmContainer of which the context is to be stored (can be Box Access or Entry Access)
          pulFirmCodes - contains a array of Firm Codes to be stored
          Returns:
          Returns the number of Firm Items stored in the WibuCmRaC file.
        • cmSetRemoteUpdate

          public static boolean cmSetRemoteUpdate​(java.lang.String strRauFile,
                                                  long jHandle)
          This method programs a CmContainer with a given RTU-file (Remote Update file). The RTU-file contains all information needed for programming an entry into a CmContainer in a save way. This method is not imlemented by the CodeMeter-Server now.
          Parameters:
          strRauFile - the RTU-File
          jHandle - contains a handle to the CmContainer of which the context is to be stored (can be Box Access or Entry Access)
          Returns:
          0
        • cmListRemoteUpdate

          public static int cmListRemoteUpdate​(java.lang.String strRauFile,
                                               CodeMeter.CMSERIAL[] pcmSerials)
          Determines the serial numbers of all CmContainers listed in the WibuCmRaU file.

          CmListRemoteUpdate parses a WibuCmRaU file and determines the serial numbers of all CmContainers listed in this file.

          Parameters:
          strRauFile - contains a pointer to the null-terminated filename of the WibuCmRaU file. Please note: The filename must given without the filename extention.
          pcmSerials - contains a object to an array of CMSERIAL objects which receives the result.
          Returns:
          Returns the number of found serial numbers in the WibuCmRaU file. If this number is equal or smaller than cbSerials, all found serial numbers are copied to the array at pcmSerials. If the number of found serial numbers is larger than the length of pcmSerials, then not all elements are copy into the answer object.
        • cmSetCertifiedTimeUpdate

          public static boolean cmSetCertifiedTimeUpdate​(long jHandle,
                                                         long flCtrl,
                                                         java.lang.String server)
          This method gets the current certified time and date stamp (CTDS) from the given Certified Time Creation Server (CTCS) and sets it into the CmContainer.
          Parameters:
          jHandle - ontains a handle opened with CmAccess(). This access can be a Box Access. The CTDS of this CmContainer will be updated.
          flCtrl - unused
          server - - contains the name or IP-Address of the CTCS the CTDS should be hold. This string can be null. In this case the name or IP-Address will be read out of the profiling.
          Returns:
          '1', if the time and date of the CmContainer is updated successfully - '0', if not.
        • cmSetCertifiedTimeUpdate

          @Deprecated
          public static boolean cmSetCertifiedTimeUpdate​(long jHandle,
                                                         byte[] pszCtcsServer)
          This method gets the current certified time and date stamp (CTDS) from the given Certified Time Creation Server (CTCS) and sets it into the CmContainer.
          Parameters:
          jHandle - ontains a handle opened with CmAccess(). This access can be a Box Access. The CTDS of this CmContainer will be updated.
          pszCtcsServer - - contains the name or IP-Address of the CTCS the CTDS should be hold. This string can be null. In this case the name or IP-Address will be read out of the profiling.
          Returns:
          '1', if the time and date of the CmContainer is updated successfully - '0', if not.
        • cmCalculateDigest

          public static int cmCalculateDigest​(byte[] pbInput,
                                              byte[] pbDigest)
          This method calculates out of the given input sequence with a SHA-256 hash algorithm a 32 bit digest for later useage in a authentication process.
          Parameters:
          pbInput - - contains the buffer for the message to calculate the digest.
          pbDigest - - contains the buffer for the digest.
          Returns:
          The length of the returned signature is returned. If an error occurred 0 is returned and an error code is set. If pbDigest contains not enough memory, then the number of needed bytes will be returned. In this case the return value is greater than the cbDigest parameter and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmCalculateSignature

          public static int cmCalculateSignature​(long jHandle,
                                                 CodeMeter.CMAUTHENTICATE pcmAuth,
                                                 byte[] pbSignature)
          CmCalculateSignature() calculates a signature using the ECDSA algorithm of the given digest (CMAUTHENTICATE::digest) directly via a CmContainer entry.
          Parameters:
          jHandle - contains a handle opened with CmAccess (can be a Box Access or an Entry Access).
          pcmAuth - contains all information needed for the authentication process (see CMAUTHENTICATE).
          pbSignature - contains the buffer for the signature and should have the length CM_PUBLIC_KEY_LEN (64 bytes)
          Returns:
          1 if the signature was calculated successful. If an error occurred 0 is returned and an error code is set.
        • cmGetPublicKey

          public static int cmGetPublicKey​(long jHandle,
                                           CodeMeter.CMAUTHENTICATE pcmAuth,
                                           byte[] pbPubKey)
          CmGetPublicKey returns a public key from the CmContainer. The CmContainer usually stores private keys only. With this request the CmContainer calculates the corresponding public key using Elliptic Curve Cryptography (ECC).
          Parameters:
          jHandle - - contains a handle opened with CmAccess()
          pcmAuth - - contains all information needed for the authentication process
          pbPubKey - - contains the buffer for the public key, needs to be of size >= CodeMeter.CM_PUBLIC_KEY_LEN bytes
          Returns:
          Returns 1, if the PublicKey is successfully returned. If an error occurred 0 is returned and an error code is set.
        • cmValidateSignature

          public static boolean cmValidateSignature​(CodeMeter.CMAUTHENTICATE pcmAuth,
                                                    byte[] pbSignature,
                                                    byte[] pbPubKey)
          CmValidateSignature validates a passed signature using the passed public key and the ECDSA algorithm.
          Parameters:
          pcmAuth - contains all information needed for the authentication process (see CMAUTHENTICATE).
          pbSignature - contains the buffer for the signature to validate.
          pbPubKey - contains the buffer for the public key needed for validation.
          Returns:
          The method returns true if the signature was validated successfully using the given public key, false if not.
        • cmGetRemoteContextBuffer

          public static int cmGetRemoteContextBuffer​(long jHandle,
                                                     long flCtrl,
                                                     long[] ulFirmCodes,
                                                     java.lang.StringBuffer context)
          This function operates as CmGetRemoteContext() but uses a specified memory buffer instead of a file pointer.
          Parameters:
          jHandle - contains a handle opened by CmAccess or by CmAccess2 (BoxAccess)
          flCtrl - reserved for future purposes
          ulFirmCodes - contains an array of Firm Codes to be stored, must not be null
          context - destination, must not be null
          Returns:
          the number of Firm Items stored in the context buffer, 0 on error.
        • cmSetRemoteUpdateBuffer

          public static boolean cmSetRemoteUpdateBuffer​(long jHandle,
                                                        long flCtrl,
                                                        java.lang.String update)
          This auxiliary function reserves memory for remote update programming. It operates as CmSetRemoteUpdate but uses a pre-allocated memory buffer instead of a file pointer.
          Parameters:
          jHandle -
          flCtrl -
          update -
          Returns:
          true if successful
        • cmBorrow

          public static boolean cmBorrow​(long jHandle,
                                         long flCtrl,
                                         int borrowTimeInMin,
                                         java.lang.String server)
          Parameters:
          jHandle - open handle to the client entry
          flCtrl - control flag
          borrowTimeInMin - The desired borrow time in minutes. Please note, that the borrowing time allowed by the server can only be reduced and not extended. Therefore, by giving a borrowTimeInMin it is not possible to exceed the server-sided maximum borrowing time.
          This feature requires at least CodeMeter Version 5.20 on both client and server.
          server - name of the license server
          Returns:
          true on success
          Since:
          5.20
        • cmBorrow

          public static boolean cmBorrow​(long jHandle,
                                         long flCtrl,
                                         java.lang.String server)
          Parameters:
          jHandle - open handle to the client entry
          flCtrl - control flag
          server - name of the license server
          Returns:
          true on success
        • cmRevalidateBox

          public static int cmRevalidateBox​(long hcmse,
                                            long flCtrl)
          Revalidation of box
          Parameters:
          hcmse - a box, firm item or entry access
          flCtrl - unused, set to 0
          Returns:
          0 on error
        • cmExecuteRemoteUpdate

          public static int cmExecuteRemoteUpdate​(long hcmSubSystem,
                                                  long ctrl,
                                                  byte[] pMemBuffer,
                                                  CodeMeter.CMFAS[] cmFasSelect,
                                                  CodeMeter.CMFAS[] cmFasResult)
          CmExecuteRemoteUpdate executes the given updates and applies them as specified. This function allows the same handling for CodeMeter and CodeMeterAct regarding the update process. It allows also to apply several updates in one step but getting feedback for each update. With CmExecuteRemoteUpdate you can execute the contents of update files (.WibuCmRaU) and of license information files (.wbb). If you have files you need to read the files by yourself and store the contents in the memory buffer pMembuffer. Remarks: Detailed information about the results of the update execution can be found in pCmFasResult.
          Parameters:
          hcmSubSystem - contains the handle opened by CmAccess / CmAccess2 (must be Subsystem Access).
          ctrl - contains one of the following commands:
          • CMFAS_CTL_CMD_LIST: lists all updates and simulates the execution without any change on the licenses. The input structure pCmFasSelect has to be null. This flag cannot be combined with any other flag. The simulated result can be found in pCmFasResult.mulResult.
          • CMFAS_CTL_CMD_UPDATE: all updates are executed. Any set restriction in pCmFasSelect is respected.
          • CMFAS_CTL_CMD_UPDATE_EXISTING: only updates for existing CmContainer licenses are executed. Any set restriction in pCmFasSelect is respected. If the additional option CMFAS_CTL_OPT_ABORT_ON_ERROR is set the command only aborts if an update of an existing CmContainer license fails.
          • CMFAS_CTL_CMD_GET_COUNT: returns the count of needed structures of CMFAS for pCmFasResult. All other parameters can be null resp. 0.
          To retrieve all the command options you can use CMFAS_CTL_CMD_MASK. These flags can be or'ed with one of the following flags:
          • CMFAS_CTL_OPT_ABORT_ON_ERROR: If more than one update is specified the command aborts at the first error.
          To retrieve all the command options you can use CMFAS_CTL_OPT_MASK specifies all flags of the optional command options.
          pMemBuffer - contains the data of the update.
          cmFasSelect - contains an array of CMFAS structures with input data, e.g. the definition which updates should be applied.
          cmFasResult - contains an array of CMFAS structures with output data, e.g. which updates were successful.
          Returns:
          If no error code is set, then this functions returns the number of used entries in CmFasResult. If the error code CMERROR_BUFFER_OVERFLOW is set, the count of CMFAS structures in pCmFasResult was too small; the needed count is returned. If any other error code is set, then this function returns 0. If the option CMFAS_CTL_OPT_ABORT_ON_ERROR was set and the command aborted due to an error, the error code is set to the specific error code of the update that has failed. If the error code CMERROR_UPDATE_FAILED is set, more than one update was specified and at minimum one failed; detailed information can be found in pCmFasResult.
        • cmExtendedDiscControl

          public static int cmExtendedDiscControl​(long jHandle,
                                                  long flCtrl,
                                                  CodeMeter.CM_DISC_CONFIGURATION pvDest)
          CmExtendedDiscControl is used to obtain information of a Secure Disk partition of a CmContainer.
          Parameters:
          jHandle - open handle to the client entry
          flCtrl - control flag
          pvDest - contains a CM_DISC_CONFIGURATION for storing the result.
          Returns:
        • cmExtendedDiscControl

          public static int cmExtendedDiscControl​(long jHandle,
                                                  long flCtrl,
                                                  CodeMeter.CM_DISC_STATUS pvDest)
          CmExtendedDiscControl is used to obtain information of a Secure Disk partition of a CmContainer.
          Parameters:
          jHandle - open handle to the client entry
          flCtrl - control flag
          pvDest - contains a CM_DISC_STATUS for storing the result.
          Returns:
        • cmEnablingWriteApplicationKey

          public static int cmEnablingWriteApplicationKey​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMENABLING_WRITEADD pvCtrl)
          CmEnablingWriteApplicationKey adds/attaches/updates/detaches/deletes the access code to the CmDongle.
          Parameters:
          jHandle - contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access).
          flCtrl - contains one of the following operation commands:
          • CM_EW_ADD adds a new Enable Block Item to a Firm Item. The input parameters are provided in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_EW_ATTACH attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are provided in a CMENABLING_WRITEATTACHDETACH structure. The return value of the function is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_UPDATE updates the contents of an existing Enable Block Item. The input parameters are provided in a byte array (pointer to unsigned char). The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_DETACH detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are provided in a CMENABLING_WRITEATTACHDETACH structure. The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_DELETE deletes an existing Enable Block Item in a Firm Item. The input parameters are provided in a CMENABLING_WRITEDELETE structure. The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          pvCtrl - contains the key information to add/attach/update/detach/delete in the CmDongle. The required structures can be obtained from the flag descriptions above. Parts of the input structures are encrypted.
          Returns:
          contains the length of data stored in pvCtrl.
        • cmEnablingWriteApplicationKey

          public static int cmEnablingWriteApplicationKey​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMENABLING_WRITEATTACHDETACH pvCtrl)
          CmEnablingWriteApplicationKey adds/attaches/updates/detaches/deletes the access code to the CmDongle.
          Parameters:
          jHandle - contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access).
          flCtrl - contains one of the following operation commands:
          • CM_EW_ADD adds a new Enable Block Item to a Firm Item. The input parameters are provided in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_EW_ATTACH attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are provided in a CMENABLING_WRITEATTACHDETACH structure. The return value of the function is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_UPDATE updates the contents of an existing Enable Block Item. The input parameters are provided in a byte array (pointer to unsigned char). The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_DETACH detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are provided in a CMENABLING_WRITEATTACHDETACH structure. The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_DELETE deletes an existing Enable Block Item in a Firm Item. The input parameters are provided in a CMENABLING_WRITEDELETE structure. The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          pvCtrl - contains the key information to add/attach/update/detach/delete in the CmDongle. The required structures can be obtained from the flag descriptions above. Parts of the input structures are encrypted.
          Returns:
          contains the length of data stored in pvCtrl.
        • cmEnablingWriteApplicationKey

          public static int cmEnablingWriteApplicationKey​(long jHandle,
                                                          long flCtrl,
                                                          byte[] pvCtrl)
          CmEnablingWriteApplicationKey adds/attaches/updates/detaches/deletes the access code to the CmDongle.
          Parameters:
          jHandle - contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access).
          flCtrl - contains one of the following operation commands:
          • CM_EW_ADD adds a new Enable Block Item to a Firm Item. The input parameters are provided in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_EW_ATTACH attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are provided in a CMENABLING_WRITEATTACHDETACH structure. The return value of the function is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_UPDATE updates the contents of an existing Enable Block Item. The input parameters are provided in a byte array (pointer to unsigned char). The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_DETACH detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are provided in a CMENABLING_WRITEATTACHDETACH structure. The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_DELETE deletes an existing Enable Block Item in a Firm Item. The input parameters are provided in a CMENABLING_WRITEDELETE structure. The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          pvCtrl - contains the key information to add/attach/update/detach/delete in the CmDongle. The required structures can be obtained from the flag descriptions above. Parts of the input structures are encrypted.
          Returns:
          contains the length of data stored in pvCtrl.
        • cmEnablingWriteApplicationKey

          public static int cmEnablingWriteApplicationKey​(long jHandle,
                                                          long flCtrl,
                                                          CodeMeter.CMENABLING_WRITEDELETE pvCtrl)
          CmEnablingWriteApplicationKey adds/attaches/updates/detaches/deletes the access code to the CmDongle.
          Parameters:
          jHandle - contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access).
          flCtrl - contains one of the following operation commands:
          • CM_EW_ADD adds a new Enable Block Item to a Firm Item. The input parameters are provided in a CMENABLING_WRITEADD structure. The return value of the function is the index of the created Enable Block Item in the Enable Block Table. If no Enable Block Item is created then 0 is returned and an error code is set.
          • CM_EW_ATTACH attaches an existing Enable Block Item to a Firm Item or Product Item. The input parameters are provided in a CMENABLING_WRITEATTACHDETACH structure. The return value of the function is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_UPDATE updates the contents of an existing Enable Block Item. The input parameters are provided in a byte array (pointer to unsigned char). The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_DETACH detaches an existing Enable Block Item from a Firm Item or Product Item. The input parameters are provided in a CMENABLING_WRITEATTACHDETACH structure. The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          • CM_EW_DELETE deletes an existing Enable Block Item in a Firm Item. The input parameters are provided in a CMENABLING_WRITEDELETE structure. The return value is 1 (TRUE) if everything is alright, else 0 (FALSE).
          pvCtrl - contains the key information to add/attach/update/detach/delete in the CmDongle. The required structures can be obtained from the flag descriptions above. Parts of the input structures are encrypted.
          Returns:
          contains the length of data stored in pvCtrl.
        • cmEnablingGetApplicationContext

          public static int cmEnablingGetApplicationContext​(long jHandle,
                                                            CodeMeter.CMENABLING_APPCONTEXT cmAppContext)
          CmEnablingGetApplicationContext gets the context of the application to be enabled/disabled. If there is no disabled Enable Block Item in the CmDongle or no Enable Block Item attached to the given CmDongle or CmDongle entry then no context is returned. Remarks: The FC:PC stored in the CMENABLING_APPCONTEXT structure can differ from the FC:PC accessed by the HCMSysEntry handle, because the
          • FC:PC is stored in the CMENABLING_APPCONTEXT containing the Enable Block, which must be enabled/disabled to have free access to the CmDongle or the CmDongle Entry.
          • FC:PC is related to the handle containing the Enable Lookup Item to the Enable Block of the FC:PC stored in CMENABLING_APPCONTEXT so that it is enabled or disabled.
          Parameters:
          jHandle - contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access).
          cmAppContext - receives all information needed to enable/disable a box/entry (see CMENABLING_APPCONTEXT).
          Returns:
          The length of the returned data is returned if the disabled Enable Block Item attached to the specified CmDongle or CmDongle entry is found. FALSE, if not. Usually it's the length of the CMENABLING_APPCONTEXT structure.
        • cmEnablingGetChallenge

          public static int cmEnablingGetChallenge​(long jHandle,
                                                   CodeMeter.CMENABLING_APPCONTEXT cmAppContext,
                                                   byte[] pbChallenge)
          CmEnablingGetChallenge gets the challenge (Session ID) out of the CmDongle, which must be enabled/disabled. This challenge is a random number created by the CmDongle. Remarks: The challenge received by the CmDongle is valid for 180 seconds. If the response to this challenge is sent after that period an error is returned.
          Parameters:
          jHandle - contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access).
          cmAppContext - contains all information needed to enable/disable a box/entry (see CMENABLING_APPCONTEXT).
          pbChallenge - contains the buffer for the challenge
          Returns:
          The length of the returned challenge is returned. If an error occurred 0 is returned and an error code is set. If pbChallenge does not contain enough memory, the amount of required bytes will be returned. In this case the return value is larger than the cbChallenge parameter and error code CMERROR_BUFFER_OVERFLOW is set.
        • cmEnablingSendResponse

          public static boolean cmEnablingSendResponse​(long jHandle,
                                                       CodeMeter.CMENABLING_APPCONTEXT cmAppContext,
                                                       byte[] pbResponse)
          CmEnablingSendResponse enables a CmDongle or a CmDongle entry. During Enabling the CmDongle receives the challenge (created by CmEnablingGetChallenge in the CmDongle) plus some additional data (like expiration time, etc.) encrypted back from an external security device (e.g. SmartCard). The CmDongle now checks this encrypted challenge by encrypting the originally created challenge and comparing it to the received one. The encryption key is stored in CmDongle and SmartCard only and will never leave these two devices in an insecure way. Remarks: If the CmDongle or a CmDongle entry is disabled because of an expired time. CodeMeter.exe triggers an event for the authentication server to check for another enable process/validation.
          Parameters:
          jHandle - contains a handle opened by CmAccess / CmAccess2 (can be Box Access or Entry Access)
          cmAppContext - contains all information needed to enable/disable a box/entry (see CMENABLING_APPCONTEXT).
          pbResponse - contains the response buffer
          Returns:
          true, if the process worked successfully - false, if not.
        • CmLtCreateContext

          public static byte[] CmLtCreateContext​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMLTREQUEST pcmltRequest,
                                                 byte[] pContextForPull)
        • CmLtDoTransfer

          public static byte[] CmLtDoTransfer​(long jHandle,
                                              long flCtrl,
                                              CodeMeter.CMLTTRANSFER pcmltTransfer,
                                              byte[] pRequest)
        • CmLtImportUpdate

          public static boolean CmLtImportUpdate​(long jHandle,
                                                 long flCtrl,
                                                 byte[] pUpdate)
        • CmLtCreateReceipt

          public static byte[] CmLtCreateReceipt​(long jHandle,
                                                 long flCtrl,
                                                 CodeMeter.CMLTREQUEST pcmltRequest)
        • CmLtConfirmTransfer

          public static boolean CmLtConfirmTransfer​(long jHandle,
                                                    long flCtrl,
                                                    byte[] pAcknowledge)
        • CmLtCleanup

          public static boolean CmLtCleanup​(long jHandle,
                                            long flCtrl)
        • CmLtLiveTransfer

          public static int CmLtLiveTransfer​(long hcmseFrom,
                                             long hcmseTo,
                                             long flCtrl,
                                             CodeMeter.CMLTTRANSFER pcmltTransfer)