login
void login(ApplicationContext appCtx, String featureName, Attribute attribute)
This API is used to consume a license. It is used to log in to a feature and establish a session for license consumption. It also creates a usage log.
This API also allows passing additional values for specific purposes at the time of obtaining a license authorization.
NOTE For information on which license to retrieve if the same feature exists in multiple entitlements of a customer, refer to the section Priority Logic for Feature Consumption.
Parameters
Parameter | Description |
---|---|
appCtx [in] | The application context object (that was initialized while initializing the licensing resources). You can set it to null. |
featureName [in] | Name of the feature for which the license is to be obtained from the Sentinel Cloud Connect. |
attribute[in] |
The key-value pairs of attributes to be used to obtain licenses from the Sentinel Cloud Connect. The attributes that can be set are described in the next section. |
Attributes
The table below provides details about the attributes that can be set by using the LicensingConstants class:
Attribute for... | Key and Description |
---|---|
Setting the feature version |
|
Setting the login identity string | |
Setting the license units required |
|
Setting the vendor usage data |
|
Setting the usage count multiplier |
NOTE It is recommended not to use the logout API to pass usage count multiplier for licenses where the usage limit is defined. |
Exception Handling
If unsuccessful, throws LicensingException.