Enrollment 28.2.0
Loading...
Searching...
No Matches
Info.h File Reference
#include "enrollment/Exception/CallbackError.h"
#include "enrollment/Export.h"
#include <array>
#include <string>
Include dependency graph for Info.h:

Go to the source code of this file.

Enumerations

enum class  HardwareIdMethod : uint8_t {
  AUTO = 0 , DISK = 1 , CPU_MAC = 2 , SMBIOS = 5 ,
  AMAZON = 6 , APPLICATION_ID = 7 , PHYSICAL = 8 , ARM_ANDROID_MAC_ADDR = 9 ,
  SYSTEM = 10 , ANDROID_ID = 11
}
 Defines method of obtaining hardware ID for license create/check. More...

Functions

static std::string VersionInfo ()
 Provides information about SDK.
static std::string HardwareID ()
 Provides hardware ID of current PC/mobile/device.
static std::string HardwareID (HardwareIdMethod method)
 Provides hardware ID of current PC/mobile/device.

Detailed Description

Author
Stefan Bellus stefa.nosp@m.n.be.nosp@m.llus@.nosp@m.inno.nosp@m.vatri.nosp@m.cs.c.nosp@m.om
Date
16.08.2021

Enumeration Type Documentation

◆ HardwareIdMethod

enum class HardwareIdMethod : uint8_t
strong

Defines method of obtaining hardware ID for license create/check.

Enumerator
AUTO 

Automatically select the hardware id based on platform defaults.

DISK 

Use disk based hardware id.

CPU_MAC 

Use cpu and network mac address as hardware id.

SMBIOS 

Use smbios for hardware id.

AMAZON 

Use amazon http request as hardware id.

APPLICATION_ID 

Use application identifier as application id.

PHYSICAL 

Use other physical hardware identifier (platform specific).

ARM_ANDROID_MAC_ADDR 

Use only network MAC address as hardware id.

Available for ARM Linux and Android including x86/x86_64 simulators.

SYSTEM 

Use content of a system file to generate hardware id (/proc, /sys on Linux systems).

ANDROID_ID 

Use android ID.

The ANDROID_ID property is a 64-bit number that is generated when the device is first booted, and is supposed to remain constant for the lifetime of the device.

Function Documentation

◆ HardwareID() [1/2]

std::string HardwareID ( )
inlinestatic

Provides hardware ID of current PC/mobile/device.

It uses default platform specific method to obtain hardware id.

Exceptions
EnrollmentExceptionwhen it is not possible to obtain hardware id
Returns
Hardware ID for generating license

References AUTO.

◆ HardwareID() [2/2]

std::string HardwareID ( HardwareIdMethod method)
inlinestatic

Provides hardware ID of current PC/mobile/device.

Parameters
methodmethod for getting hardware id.
Exceptions
EnrollmentExceptionwhen it is not possible to obtain hardware id
LicenseFeatureNotAllowedExceptionwhen HardwareIdMethod::ARM_ANDROID_MAC_ADDR is used on non-ARM, non-Android platforms.
Returns
Hardware ID for generating license

◆ VersionInfo()

std::string VersionInfo ( )
inlinestatic

Provides information about SDK.

Returns
version of SDK and its dependencies