Re-exports§
pub use error_codes::*;
Modules§
Structs§
- Activation
Mode - Represents an activation mode.
- Feature
Entitlement - Represents a feature entitlement with details about its value.
- License
Meter Attribute - Represents a license meter attribute.
- Metadata
- Represents a metadata
- Organization
Address - Represents an organization address.
- Product
Version Feature Flag - Represents a product version feature flag.
- User
License - Represents a user license with information about various license parameters.
Enums§
- Permission
Flags - Represents various permission flags.
Functions§
- activate_
license - Activates the license by contacting the Cryptlex servers.
- activate_
license_ offline - Activates your licenses using the offline activation response file.
- activate_
local_ trial - Starts the local(unverified) trial.
- activate_
trial - Starts the verified trial in your application by contacting the Cryptlex servers.
- activate_
trial_ offline - Activates the trial using the offline activation response file.
- authenticate_
user - Authenticates the user.
- authenticate_
user_ with_ id_ token - Authenticates the user via OIDC Id token.
- deactivate_
license - Deactivates the license activation and frees up the corresponding activation slot by contacting the Cryptlex servers.
- decrement_
activation_ meter_ attribute_ uses - Decrements the meter attribute uses of the activation.
- extend_
local_ trial - Extends the local trial.
- generate_
offline_ activation_ request - Generates an offline activation request file. The request file contains necessary information to perform offline activation.
- generate_
offline_ deactivation_ request - Generates the offline deactivation request needed for deactivation of the license in the dashboard and deactivates the license locally.
- generate_
offline_ trial_ activation_ request - Generates the offline trial activation request needed for generating offline trial activation response in the dashboard.
- get_
activation_ id - Retrieves the activation id.
- get_
activation_ last_ synced_ date - Retrieves the activation last synced date timestamp.
- get_
activation_ metadata - Retrieves the metadata value associated with the specified key for the activation.
- get_
activation_ meter_ attribute_ uses - Retrieves the number of uses of the specified metered attribute for the activation.
- get_
activation_ mode - Retrieves the initial and current activation mode.
- get_
feature_ entitlement - Retrieves the feature entitlement.
- get_
feature_ entitlements - Retrieves the feature entitlements.
- get_
library_ version - Retrieves the version of the LexActivator library.
- get_
license_ activation_ date - Retrieves the license activation date timestamp.
- get_
license_ allowed_ activations - Retrieves the number of allowed activations for the license.
- get_
license_ allowed_ deactivations - Retrieves the number of allowed deactivations for the license.
- get_
license_ creation_ date - Retrieves the license creation date timestamp.
- get_
license_ entitlement_ set_ display_ name - Retrieves the license entitlement set display name.
- get_
license_ entitlement_ set_ name - Retrieves the license entitlement set name.
- get_
license_ expiry_ date - Retrieves the expiry date of the license.
- get_
license_ key - Retrieves the license key.
- get_
license_ maintenance_ expiry_ date - Retrieves the maintenance expiry date of the license.
- get_
license_ max_ allowed_ release_ version - Retrieves the maximum allowed release version for the license.
- get_
license_ metadata - Retrieves the metadata associated with a license.
- get_
license_ meterattribute - Retrieves the meter attribute of a license.
- get_
license_ organization_ address - Retrieves the organization address associated with the license.
- get_
license_ organization_ name - Retrieves the organization name associated with the license.
- get_
license_ total_ activations - Retrieves the total number of activations for the license.
- get_
license_ total_ deactivations - Retrieves the total number of deactivations for the license.
- get_
license_ type - Retrieves the type of the license.
- get_
license_ user_ company - Retrieves the user’s company associated with the license.
- get_
license_ user_ email - Retrieves the user’s email associated with the license.
- get_
license_ user_ metadata - Retrieves the metadata value associated with the license user.
- get_
license_ user_ name - Retrieves the user’s name associated with the license.
- get_
local_ trial_ expiry_ date - Retrieves the local expiry date of the trial activation.
- get_
product_ metadata - get_
product_ version_ display_ name - Retrieves the display name of the product version.
- get_
product_ version_ feature_ flag - Retrieves the feature flag of a specific product version.
- get_
product_ version_ name - Retrieves the name of the product version.
- get_
server_ sync_ grace_ period_ expiry_ date - Retrieves the expiry date of the server sync grace period for the activation.
- get_
trial_ activation_ metadata - Retrieves the metadata value associated with the specified key for the trial activation.
- get_
trial_ expiry_ date - Retrieves the expiry date of the trial activation.
- get_
trial_ id - Retrieves the ID of the trial activation.
- get_
user_ licenses - Retrieves the user licenses associated with the current user.
- increment_
activation_ meter_ attribute_ uses - Increments the meter attribute uses of the activation.
- is_
license_ genuine - It verifies whether your app is genuinely activated or not. The verification is done locally by verifying the cryptographic digital signature fetched at the time of activation.
- is_
license_ valid - It verifies whether your app is genuinely activated or not. The verification is done locally by verifying the cryptographic digital signature fetched at the time of activation.
- is_
local_ trial_ genuine - It verifies whether trial has started and is genuine or not. The verification is done locally.
- is_
trial_ genuine - It verifies whether trial has started and is genuine or not. The verification is done locally by verifying the cryptographic digital signature fetched at the time of trial activation.
- reset
- Resets the activation and trial data stored in the machine.
- reset_
activation_ meter_ attribute_ uses - Resets the meter attribute uses of the activation.
- set_
activation_ lease_ duration - Sets the activation lease duration.
- set_
activation_ metadata - Sets the activation metadata.
- set_
cache_ mode - Enables or disables in-memory caching for LexActivator.
- set_
cryptlex_ host - Sets the Cryptlex host.
- set_
custom_ device_ fingerprint - In case you don’t want to use the LexActivator’s advanced device fingerprinting algorithm, this function can be used to set a custom device fingerprint.
- set_
data_ directory - In case you want to change the default directory used by LexActivator to store the activation data on Linux and macOS, this function can be used to set a different directory.
- set_
debug_ mode - Enables network logs.
- set_
license_ callback - Sets the license closure callback.
- set_
license_ key - Sets the license key for activation.
- set_
license_ user_ credential - Sets the license user credentials for activation.
- set_
network_ proxy - Sets the network proxy.
- set_
offline_ activation_ request_ meter_ attribute_ uses - Sets the offline activation request meter attribute uses.
- set_
product_ data - Embeds the Product.dat file in the application.
- set_
product_ id - Sets the product id of your application.
- set_
release_ channel - Sets the release channel e.g. stable, beta
- set_
release_ platform - Sets the release platform.
- set_
release_ published_ date - Sets the release published date.
- set_
release_ version - Sets the release version.
- set_
trial_ activation_ metadata - Sets the trial activation metadata.
- set_
two_ factor_ authentication_ code - Sets the two-factor authentication code for the user authentication.
- unset_
license_ callback - Unset the current license closure callback.