Package com.wibu.cm

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
      CM_ACTSTATUS_ACTIVATE_CODE
      boolean cmactActivateFile
      CM_ACTSTATUS_ACTIVATE_FILE
      boolean cmactActive
      CM_ACTSTATUS_ACTIVE
      boolean cmactBroken
      CM_ACTSTATUS_BROKEN
      boolean cmactFile
      specifies that the CmContainer is a CodeMeterAct license file
      boolean cmactInvalid
      CM_ACTSTATUS_INVALID
      boolean cmactLoaded
      specifies that the CmContainer is a loaded CmAct license
      boolean cmactProgrammable
      CM_ACTSTATUS_PROGRAMMABLE
      boolean cmactPsnRequired
      CM_ACTSTATUS_PSN_REQUIRED
      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
      CM_BOXSTATUS_ISCMACT
      boolean lowMemory
      specifies that the CmDongle has too low memory to replace damaged memory during normal usage.
      boolean realTimeClockUsed
      CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED
      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.
      long value
      Contains all above information or'ed using the CM_BOXSTATUS_ flags.
    • Constructor Summary

      Constructors 
      Constructor Description
      CMBOXSTATUS()  
    • Method Summary

      • 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 CmDongle 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
        CM_BOXSTATUS_ISCMACT
      • cmactFile

        public boolean cmactFile
        specifies that the CmContainer is a CodeMeterAct license file
      • cmactLoaded

        public boolean cmactLoaded
        specifies that the CmContainer is a loaded CmAct license
      • cmactActivateCode

        public boolean cmactActivateCode
        CM_ACTSTATUS_ACTIVATE_CODE
      • cmactActivateFile

        public boolean cmactActivateFile
        CM_ACTSTATUS_ACTIVATE_FILE
      • cmactActive

        public boolean cmactActive
        CM_ACTSTATUS_ACTIVE
      • cmactProgrammable

        public boolean cmactProgrammable
        CM_ACTSTATUS_PROGRAMMABLE
      • cmactInvalid

        public boolean cmactInvalid
        CM_ACTSTATUS_INVALID
      • cmactBroken

        public boolean cmactBroken
        CM_ACTSTATUS_BROKEN
      • cmactPsnRequired

        public boolean cmactPsnRequired
        CM_ACTSTATUS_PSN_REQUIRED
      • realTimeClockUsed

        public boolean realTimeClockUsed
        CM_BOXSTATUS_BATTERY_POWERED_CLOCK_USED
      • 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 ) System.out.println("CmStick has flash memory -> CmStick/M");

        is equivalent to this one:

        if ( cmboxstatus.value | CodeMeter.CM_BOXSTATUS_HASFLASH ) System.out.println("CmStick has flash memory -> CmStick/M");

    • Constructor Detail

      • CMBOXSTATUS

        public CMBOXSTATUS()