Class LoginSession

This class provides various APIs related to the license authorization. This class is used to:

>Consume a license using the login API

>Refresh a license using the refresh API

>Release a license using the logout API.

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
LoginSession()

Default constructor. Creates a LoginSession object instance to call the login API.

LoginSession(ApplicationContext appCtx, String serializedData )

Creates a LoginSession object instance using the given attributes. This constructor is used to call the refresh and logout APIs.

The attribute details are:

>appCtx: Reserved for future use. Use NULL as the value for this argument. The same ApplicationContext object that was created while obtaining a license authorization.

>serializedData: The string containing a serialized session handle. The string is obtained by calling the serialize API from the object used to call the login API.

APIs

Modifier and Type API
void login(ApplicationContext appCtx, String featureName, Attribute attribute) throws LicensingException, IOException
void

refresh() throws LicensingException, LicenseException

refresh(Attribute attribute) throws LicensingException, LicenseException

void

logout() throws LicensingException, LicenseException

logout(Attribute attribute) throws LicensingException, LicenseException

String

serialize()