Class CodeMeter.CMAUTHENTICATE

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMAUTHENTICATE
    extends java.lang.Object
    CMAUTHENTICATE contains all information needed for an authentication process.

    Definition for the class CMAUTHENTICATE corresponding to the c-api struct CMAUTHENTICATE. CMAUTHENTICATE contains all information needed for an authentication process.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      CodeMeter.CMBOXINFO cmBoxInfo
      contains the CmContainer information used for the authentication process.
      long ctrl
      contains one of the following commands: CM_AUTH_FIRMKEY specifies that the signature calculation is done with the FirmKey. CM_AUTH_HIDDENDATA specifies that the signature calculation is done with a Hiddendata. CM_AUTH_SECRETDATA specifies that the signature calculation is done with a SecretData. CM_AUTH_SERIALKEY specifies that the signature calculation is done with the SerialKey. CM_AUTH_BOXKEY specifies that the signature calculation is done with the BoxKey. CM_AUTH_PISK specifies that the signature calculation is done with the PISK. This commands can be or'ed with one of the following flags: CM_AUTH_DIRECT uses the specified digest directly as input of the ECDSA algorithm. CM_AUTH_EXTENDED defines that the specified Encryption Code Options and Feature Code influence the use of the Product Item and influences the signature calculation. CM_AUTH_SERIAL defines that the specified Encryption Code Options influence the use of the Product Item and influences together with the Serial Number of the CmContainer the signature calculation.
      byte[] digest
      contains the 32-byte res.
      long encryptionCodeOptions
      contains the Encryption Code Options, this are the higher 32 bits of the Encryption Code.
      long featureCode
      contains the used Feature Code, which must match the used Feature Map.
      long firmCode
      contains the FirmCode used for the authentication process.
      long keyExtType
      contains the extended type of the HiddenData or SecretData PIO if in ctrl CM_AUTH_HIDDENDATA or CM_AUTH_SECRETDATA is specified.
      long productCode
      contains the FirmCode used for the authentication process.
    • Constructor Summary

      Constructors 
      Constructor Description
      CMAUTHENTICATE()  
    • 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
        contains one of the following commands:
        • CM_AUTH_FIRMKEY specifies that the signature calculation is done with the FirmKey.
        • CM_AUTH_HIDDENDATA specifies that the signature calculation is done with a Hiddendata.
        • CM_AUTH_SECRETDATA specifies that the signature calculation is done with a SecretData.
        • CM_AUTH_SERIALKEY specifies that the signature calculation is done with the SerialKey.
        • CM_AUTH_BOXKEY specifies that the signature calculation is done with the BoxKey.
        • CM_AUTH_PISK specifies that the signature calculation is done with the PISK.
        This commands can be or'ed with one of the following flags:
        • CM_AUTH_DIRECT uses the specified digest directly as input of the ECDSA algorithm.
        • CM_AUTH_EXTENDED defines that the specified Encryption Code Options and Feature Code influence the use of the Product Item and influences the signature calculation.
        • CM_AUTH_SERIAL defines that the specified Encryption Code Options influence the use of the Product Item and influences together with the Serial Number of the CmContainer the signature calculation.
      • keyExtType

        public long keyExtType
        contains the extended type of the HiddenData or SecretData PIO if in ctrl CM_AUTH_HIDDENDATA or CM_AUTH_SECRETDATA is specified. Otherwise this member must be set to 0.
      • firmCode

        public long firmCode
        contains the FirmCode used for the authentication process.
      • productCode

        public long productCode
        contains the FirmCode used for the authentication process.
      • encryptionCodeOptions

        public long encryptionCodeOptions
        contains the Encryption Code Options, this are the higher 32 bits of the Encryption Code. This value is only used if ctrl has set the CM_AUTH_EXTENDED or CM_AUTH_SERIAL option. Otherwise it must be set to 0. featureCode contains the used Feature Code, which must match the used Feature Map. This value is only used if ctrl has set the CM_AUTH_EXTENDED option. Otherwise it must be set to 0.
      • featureCode

        public long featureCode
        contains the used Feature Code, which must match the used Feature Map. This value is only used if ctrl has set the CM_AUTH_EXTENDED option. Otherwise it must be set to 0.
      • cmBoxInfo

        public CodeMeter.CMBOXINFO cmBoxInfo
        contains the CmContainer information used for the authentication process.
      • digest

        public byte[] digest
        contains the 32-byte res. 256-bit digest which is signed.
    • Constructor Detail

      • CMAUTHENTICATE

        public CMAUTHENTICATE()