Java License Manager API¶
oneML class that manages licensing of all oneML APIs.
-
class
org::sertiscorp::oneml::face
::
LicenseManager
¶ Public Functions
-
inline synchronized void delete ()
Gracefully destroy the object and free memory.
-
inline
LicenseManager
()¶ Construct a LicenseManager object.
-
inline void
setKey
(String key)¶ Set the oneML product key.
- Parameters
key
: a string of product key.
-
inline String
getKey
()¶ Get the product key.
- Return
string of product key.
-
inline LicenseStatus
activateKey
()¶ Activate product key, requires to set a key first.
- Return
LicenseStatus::Ok if activate success, LicenseStatus::Error otherwise.
-
inline String
getMachineCode
()¶ Get a machine code used as a machine unique identifier.
- Return
string of a machine code.
-
inline boolean
isTrial
()¶ Check if product key is trial or not, requires to actvate a key first.
- Return
true if product key is trial key, false otherwise.
-
inline LicenseStatus
validateActivation
()¶ Check if product key is valid or not (not expired), requires to activate a key first.
- Return
LicenseStatus value.
-
inline LicenseActivationType
getActivationType
()¶ Get the type of the current activation.
- Return
LicenseActivationType: an enum of activation type
NotFound: If a license is not activated or not found
KeyOnline: If an activation is done by a license key and an online service
TrialOnline: If a trial activation is done by an online service
-
inline java.math.BigInteger getActivationExpiryDate ()
Get the key expiry date.
- Return
uint64_t unix time.
-
inline java.math.BigInteger getActivationSuspendedDate ()
Get the key suspension date.
- Return
uint64_t unix time.
-
-
namespace
org::sertiscorp::oneml
::
face
-
enum
LicenseStatus
¶ Public Members
-
Ok =(FaceJNI.LicenseStatus_Ok_get())
-
Error =(FaceJNI.LicenseStatus_Error_get())
-
Expired =(FaceJNI.LicenseStatus_Expired_get())
-
Suspended =(FaceJNI.LicenseStatus_Suspended_get())
-
-
enum
-
class
org::sertiscorp::oneml::alpr
::
LicenseManager
¶ Public Functions
-
inline synchronized void delete ()
Gracefully destroy the object and free memory.
-
inline
LicenseManager
()¶ Construct a LicenseManager object.
-
inline void
setKey
(String key)¶ Set the oneML product key.
- Parameters
key
: a string of product key.
-
inline String
getKey
()¶ Get the product key.
- Return
string of product key.
-
inline LicenseStatus
activateKey
()¶ Activate product key, requires to set a key first.
- Return
LicenseStatus::Ok if activate success, LicenseStatus::Error otherwise.
-
inline String
getMachineCode
()¶ Get a machine code used as a machine unique identifier.
- Return
string of a machine code.
-
inline boolean
isTrial
()¶ Check if product key is trial or not, requires to actvate a key first.
- Return
true if product key is trial key, false otherwise.
-
inline LicenseStatus
validateActivation
()¶ Check if product key is valid or not (not expired), requires to activate a key first.
- Return
LicenseStatus value.
-
inline LicenseActivationType
getActivationType
()¶ Get the type of the current activation.
- Return
LicenseActivationType: an enum of activation type
NotFound: If a license is not activated or not found
KeyOnline: If an activation is done by a license key and an online service
TrialOnline: If a trial activation is done by an online service
-
inline java.math.BigInteger getActivationExpiryDate ()
Get the key expiry date.
- Return
uint64_t unix time.
-
inline java.math.BigInteger getActivationSuspendedDate ()
Get the key suspension date.
- Return
uint64_t unix time.
-
-
namespace
org::sertiscorp::oneml
::
alpr
-
enum
LicenseStatus
¶ Public Members
-
Ok =(AlprJNI.LicenseStatus_Ok_get())
-
Error =(AlprJNI.LicenseStatus_Error_get())
-
Expired =(AlprJNI.LicenseStatus_Expired_get())
-
Suspended =(AlprJNI.LicenseStatus_Suspended_get())
-
-
enum