AdminApi Constructor

Namespace: SafeNet.Sentinel

Description

Initializes a new instance of an AdminApi object that can be used to connect to the License Manager service or Integrated License Manager.

The Sentinel Admin API functionality for the Integrated License Manager is included in the Sentinel Licensing API. To connect to the Integrated License Manager, use the Licensing API library in the protected application. Do not use sntl_adminapi_windows.lib. This is a standalone library that does not support the Integrated License Manager.

If the Vendor Code is not null, Sentinel Licensing API (hasp_windows_<vid>.dll) is used.

If the Vendor Code is null, Sentinel Admin API (sntl_admin_windows.dll) is used.

When connecting to Integrated License Manager, do not specify a port and password.

Parameters

vendorCode

VendorCode type. This is required when establishing a context to the Integrated License Manager. This is used to talk to the Licensing C API, which also contains Admin API.

hostname (For License Manager service) Host name or IP address of the targeted License Manager.
port (For License Manager service) Port number of the targeted License Manager (or specify 0 to use the default port 1947)
password (For License Manager service) Password string (or null)

Usage Notes

A Vendor Code is required when establishing a context to the Integrated License Manager. This is used to talk to the Licensing C API, which also contains Admin API. Use the helper class VendorCodeType to initialize the VendorCodeType object.

Overloaded Constructors

>Initializes a new AdminApi object that can be used to connect to the License Manager running on localhost on the default port with the default password.

AdminApi ( )

>Initializes a new AdminApi object that can be used to connect to the License Manager running on the specified host on the default port with the default password.

AdminApi ( String hostname )

>Initializes a new AdminApi object that can be used to connect to the License Manager running on the specified host on the specified port with the default password.

AdminApi ( String hostname, ushort port )

>Initializes a new AdminApi object that can be used to connect to the License Manager running on a specified host on a specified port with a specified password.

AdminApi ( String hostname, ushort port, String password )

>Initializes a new AdminApi object that can be used in HTTPS mode to connect to the License Manager running on a specified host on a specified port with a specified password.

AdminApi ( String   hostname,
           ushort   port,
           String   password,
           String   cert )

>Initializes a new AdminApi object that can be used to connect to the License Manager running on a specified host on the default port with the default password.

AdminApi ( VendorCodeType vendorCodeType,
           String         hostname  )

>Initializes a new AdminApi object that can be used to connect to the License Manager running on a specified host on a specified port with the default password.

AdminApi ( VendorCodeType   vendorCodeType,
           String           hostname,
           ushort           port )

>Initializes a new AdminApi object that can be used to connect to the License Manager running on a specified host on a specified port with a specified password.

AdminApi ( VendorCodeType vendorCodeType,
           String         hostname, )
           ushort         port,
           String         password )

>Initializes a new AdminApi object that can be used in HTTPS mode to connect to the License Manager running on a specified host on a specified port with a specified password.

AdminApi ( VendorCodeType vendorCodeType,
           String         hostname, )
           ushort         port,
           String         password, String cert )