Class CodeMeter.CMLICENSEINFO

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMLICENSEINFO
    extends java.lang.Object
    CMLICENSEINFO contains data of a complete license.

    Definition for the class CMLICENSEINFO corresponding to the c-api struct CMLICENSEINFO. CMLICENSEINFO contains data of a complete license.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      long ctrl
      specifies the properties of the license.
      java.lang.String description
      contains the description text of the license.
      long firmCode
      contains the Firm Code of the license.
      java.lang.String firmItemText
      contains the text which is set by default into a created Firm Item.
      long fsbFirmCode
      contains the Firm Code which is used for the FSB Firm Item.
      long fsbProductCode
      contains the Product Code which is used to access the FSB.
      long idOem
      ontains the OEM ID.
    • Constructor Summary

      Constructors 
      Constructor Description
      CMLICENSEINFO()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • ctrl

        public long ctrl
        specifies the properties of the license. This is expressed by the following flags:
        • CM_LICENSE_FILEBASED contains the flag "File-Based type is supported". This flag is set when the Firm Key and Firm Common Key are defined.
        • CM_LICENSE_BOXBASED contains the flag "Box-Based type is supported by FSB". This flag is true if the Type value contains 0 (default), 2 or 3.
        • CM_LICENSE_FILEBASEDCREATE contains the flag "use FileBased instead Box-Based type to create a new Firm Item". This flag is set if CM_LICENSE_FILEBASED is set and the Type value is 0, 1, or 3.
        • CM_LICENSE_FIRMKEY contains the flag "Firm Key is available". This key is typically required if CM_LICENSE_FILEBASED is set but could also an update for the value in a Box-Based FSB.
        • CM_LICENSE_PUBLICFIRMKEY contains the flag "public Firm Key for ECC" is available. This flag is only set if the CM_LICENSE_FILEBASED is not set, so the public Firm Key cannot be calculated from the Firm Key.
        • CM_LICENSE_FSBUPDATEKEY contains the flag "FSB Update Key is available". This key is required to update a FSB which is used in Box-Based type.
        • CM_LICENSE_ENCRYPTED contains the flag "data in Firm License file is encrypted". A FSB is required to decrypt this data. The flag does not guarantee that this decryption FSB is available.
        • CM_LICENSE_BOXBASEDFSB contains the flag "the License expects a BoxBased FSB and not a FileBased FSB".
      • firmCode

        public long firmCode
        contains the Firm Code of the license.
      • idOem

        public long idOem
        ontains the OEM ID. The default value is 0.
      • fsbFirmCode

        public long fsbFirmCode
        contains the Firm Code which is used for the FSB Firm Item. The default value is 0 which specifies that the Firm Code of the FSB is not seeked, any is accepted.
      • fsbProductCode

        public long fsbProductCode
        contains the Product Code which is used to access the FSB. Normally this is identical with firmCode of the base class, but for special FSB operations (for example Box Key) this may be different.
      • description

        public java.lang.String description
        contains the description text of the license. (Array ot the length of CM_MAX_STRING_LEN bytes.)
      • firmItemText

        public java.lang.String firmItemText
        contains the text which is set by default into a created Firm Item. (Array ot the length of CM_MAX_STRING_LEN bytes.)
    • Constructor Detail

      • CMLICENSEINFO

        public CMLICENSEINFO()