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

Assembly: SentinelLicensing.dll

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: The same ApplicationContext object that was created while obtaining a license authorization. Reserved for future use. Use NULL as the value for this argument.

>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)
void

refresh()

refresh(Attribute attribute)

void

logout()

logout(Attribute attribute)

string

serialize()