Class Identity
This class provides APIs for creating a string containing user name and customer information to be used while calling the login and getinfo APIs.
Namespace: SentinelCloud.Services.Licensing (Contain classes that helps in licensing operations such as requesting, updating, and releasing a license.)
Jar File: SentinelLicensing-5.x.x
Constructors
| Syntax | Description |
|---|---|
| Identity(ApplicationContext appContext, Attribute attribute) throws LicensingException |
Creates an identity object using application context and attribute. Argument details: >appContext: Reserved for future use. Use NULL as the value for this argument. >attribute: Contains user name and customer information in the form of key- value pairs. Following attributes of the LicensingConstant class are used to provide customer and user information respectively: •SNTL_ATTR_IDENTITY_CUSTOMER_ID •SNTL_ATTR_IDENTITY_USERNAME |
APIs
| Modifier and Type | API |
|---|---|
|
String |
throws LicensingException |
| void |
dispose() throws LicensingException |
Attributes
The table below provides details about the attribute(s) that can be set by using the LicensingConstants class:
| Attribute for... | Key and Description |
|---|---|
| Setting the user name |
>Attribute Key - SNTL_ATTR_IDENTITY_USERNAME >Mandatory >Sets the user name. |
| Setting the customer ID |
>Attribute Key - SNTL_ATTR_IDENTITY_CUSTOMER_ID >Mandatory >Sets the customer ID that is used to obtain a license (using the login API) or retrieve license information (using the getInfo API). |
