Crate lexactivator

Source

Re-exports§

pub use error_codes::*;

Modules§

error_codes

Structs§

ActivationMode
Represents an activation mode.
FeatureEntitlement
Represents a feature entitlement with details about its value.
LicenseMeterAttribute
Represents a license meter attribute.
Metadata
Represents a metadata
OrganizationAddress
Represents an organization address.
ProductVersionFeatureFlag
Represents a product version feature flag.
UserLicense
Represents a user license with information about various license parameters.

Enums§

PermissionFlags
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.