Class CodeMeter.CMBOXINFO

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMBOXINFO
    extends java.lang.Object
    Definition for the class CMBOXINFO corresponding to the c-api struct CMBOXINFO.

    This structure contains information about a CmContainer.
    Remarks:
    The length of the mabBoxPublicKey and mabSerialPublicKey is 64 byte long. The used public key are currently 224 bits = 28 bytes long. In Elliptic Curve Cryptography the public key is a 2 dimensional point, so the x-value is stored in the first 28 bytes (0..27) and the y-value is store in byte 32..59.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      int boxKeyId
      contains the ID of the used BoxKey of the CmContainer
      int boxMask
      contains the mask byte of the CmContainer
      byte[] boxPublicKey
      contains the public Box Key of the CmContainer (array of the length CM_PUBLIC_KEY_LEN )
      long extendedSerial
      contains the extended serial of the CmContainer
      short majorVersion
      contains the major version of the CmContainer
      short minorVersion
      contains the minor version of the CmContainer
      long serialNumber
      contains the serial number of the CmContainer
      byte[] serialPublicKey
      contains the public Serial Key of the CmContainer (array of the length CM_PUBLIC_KEY_LEN)
      int userKeyId
      contains the ID of the used UserKey of the CmContainer
    • Constructor Summary

      Constructors 
      Constructor Description
      CMBOXINFO()  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • majorVersion

        public short majorVersion
        contains the major version of the CmContainer
      • minorVersion

        public short minorVersion
        contains the minor version of the CmContainer
      • boxMask

        public int boxMask
        contains the mask byte of the CmContainer
      • serialNumber

        public long serialNumber
        contains the serial number of the CmContainer
      • boxKeyId

        public int boxKeyId
        contains the ID of the used BoxKey of the CmContainer
      • userKeyId

        public int userKeyId
        contains the ID of the used UserKey of the CmContainer
      • boxPublicKey

        public byte[] boxPublicKey
        contains the public Box Key of the CmContainer (array of the length CM_PUBLIC_KEY_LEN )
      • serialPublicKey

        public byte[] serialPublicKey
        contains the public Serial Key of the CmContainer (array of the length CM_PUBLIC_KEY_LEN)
      • extendedSerial

        public long extendedSerial
        contains the extended serial of the CmContainer
    • Constructor Detail

      • CMBOXINFO

        public CMBOXINFO()