Class CodeMeter.CMBOXSTATUS

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMBOXSTATUS
    extends java.lang.Object

    CMBOXSTATUS is used only for cmGetInfo(CM_GEI_BOXSTATUS)

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean cmactActivateCode
      specifies that the CodeMeterAct license can be activated by entering a code (phone activation).
      boolean cmactActivateFile
      specifies that the CodeMeterAct license has to be activated by a file transmission of a Remote Update File.
      boolean cmactActive
      specifies that the CodeMeterAct license currently is valid and active.
      boolean cmactBroken
      specifies that the binding requirements are no longer fulfilled.
      boolean cmactFile
      specifies that a file is the base of this CmActLicense.
      boolean cmactInvalid
      specifies that there occurred a problem with the security checks of the CodeMeterAct license.
      boolean cmactLoaded
      specifies that the CmActLicense is loaded and can be used.
      boolean cmactProgrammable
      specifies that this license can be programmed now.
      boolean cmactPsnRequired
      specifies that the licensee has to set a Product Serial Number (PSN) at the time of creating a remote context file.
      boolean disabled
      specifies that the CmContainer is disabled.
      boolean enabled
      specifies that the CmContainer is enabled.
      boolean hasFlash
      specifies that the CmDongle contains an additional flash disc besides the CodeMeter chip.
      boolean isCmAct
      specifies that the CmContainer is a CmActLicense.
      boolean lowMemory
      specifies that the CmContainer has too low memory to replace damaged memory during normal usage.
      boolean realTimeClockUsed
      specifies that the hardware (CmStick/T) has a working battery powered clock inside.
      boolean removeable
      specifies the configuration of the CmDongle.
      boolean replug
      specifies that the CmDongle has initiated a Plug Out/In event for itself to force the operating system to remount the flash drive.
      boolean tempEnabled
      specifies that the CmContainer is temporarily enabled.
      boolean usesHidCommunication
      specifies that the hardware uses HID communication
      boolean usesSpiCommunication
      specifies that the hardware uses SPI communication
      long value
      Contains all above information or'ed using the CM_BOXSTATUS_ flags.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setFromLong​(long value)  
      • Methods inherited from class java.lang.Object

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

      • lowMemory

        public boolean lowMemory
        specifies that the CmContainer has too low memory to replace damaged memory during normal usage.
      • replug

        public boolean replug
        specifies that the CmDongle has initiated a Plug Out/In event for itself to force the operating system to remount the flash drive.
      • hasFlash

        public boolean hasFlash
        specifies that the CmDongle contains an additional flash disc besides the CodeMeter chip.
      • removeable

        public boolean removeable
        specifies the configuration of the CmDongle. This can be either be a fixed disk device or a removable disk device. The configuration of the CmDongle can be altered with CmConfigDisk on Windows.
      • tempEnabled

        public boolean tempEnabled
        specifies that the CmContainer is temporarily enabled.
      • enabled

        public boolean enabled
        specifies that the CmContainer is enabled.
      • disabled

        public boolean disabled
        specifies that the CmContainer is disabled.
      • isCmAct

        public boolean isCmAct
        specifies that the CmContainer is a CmActLicense.
      • cmactFile

        public boolean cmactFile
        specifies that a file is the base of this CmActLicense.
      • cmactLoaded

        public boolean cmactLoaded
        specifies that the CmActLicense is loaded and can be used. Used during the license creation on licensors side.
      • cmactActivateCode

        public boolean cmactActivateCode
        specifies that the CodeMeterAct license can be activated by entering a code (phone activation).
      • cmactActivateFile

        public boolean cmactActivateFile
        specifies that the CodeMeterAct license has to be activated by a file transmission of a Remote Update File.
      • cmactActive

        public boolean cmactActive
        specifies that the CodeMeterAct license currently is valid and active.
      • cmactProgrammable

        public boolean cmactProgrammable
        specifies that this license can be programmed now. Used during the license creation on licensors side.
      • cmactInvalid

        public boolean cmactInvalid
        specifies that there occurred a problem with the security checks of the CodeMeterAct license. The license cannot be used.
      • cmactBroken

        public boolean cmactBroken
        specifies that the binding requirements are no longer fulfilled. The license cannot be used.
      • cmactPsnRequired

        public boolean cmactPsnRequired
        specifies that the licensee has to set a Product Serial Number (PSN) at the time of creating a remote context file.
      • realTimeClockUsed

        public boolean realTimeClockUsed
        specifies that the hardware (CmStick/T) has a working battery powered clock inside.
      • usesHidCommunication

        public boolean usesHidCommunication
        specifies that the hardware uses HID communication
      • usesSpiCommunication

        public boolean usesSpiCommunication
        specifies that the hardware uses SPI communication
      • value

        public long value
        Contains all above information or'ed using the CM_BOXSTATUS_ flags. This member is required for internal reasons but can also be used as replacement of the above flags. The following code

        if ( cmboxstatus.hasFlash ) StaticLogger.log("CmStick has flash memory -> CmStick/M");

        is equivalent to this one:

        if ( cmboxstatus.value | CodeMeter.CM_BOXSTATUS_HASFLASH ) StaticLogger.log("CmStick has flash memory -> CmStick/M");

    • Constructor Detail

      • CMBOXSTATUS

        public CMBOXSTATUS()
    • Method Detail

      • setFromLong

        public void setFromLong​(long value)