Hasp Class

Namespace: Aladdin.Hasp

Description

Provides methods to access various functions of the Sentinel protection key.

Syntax

public class Hasp :
            ICloneable,
            IDisposable,
            IComparable<Hasp>

Constructors

Name Description
Hasp() Constructs a new Hasp object for use with the default feature.
Hasp(HaspFeature feature) Constructs a new Hasp object for use with the specified feature.

Methods

Name Description

Decrypt

Decrypts a buffer using the AES encryption algorithm.

Encrypt

Encrypts a buffer using the AES encryption algorithm.

GetFile Returns an instance of the HaspFile class.

GetInfo

Retrieves information according to customizable search parameters, and presents it according to customizable formats.

GetRtc

Reads the current time from a HLTime or HLNetTime key.

GetSessionInfo

Retrieves information regarding a session context.

GetVersion

Retrieves the version and build number of the Sentinel Licensing API library.

IsLoggedIn Returns whether this HASP object is valid and has a running login session.
IsValid Returns whether this HASP object is valid.

Login

Logs in to a Feature, establishing a session context.

Login (With Scope)

Logs in to a Feature according to customizable search parameters.

Logout

Logs out from a context or session.

SetLibPath Sets the search path for the native Licensing API DLL.
Transfer Transfers a license from a Sentinel SL key.

Update

Writes an update for a Sentinel LDK license.

Properties

Name Description
KeyInfo Gets a string that can be used with the Aladdin.Hasp.Hasp.GetSessionInfo method to get the key information.
SessionInfo Gets a string that can be used with the Aladdin.Hasp.Hasp.GetSessionInfo method to get the session information.
UpdateInfo Gets a string that can be used with the Aladdin.Hasp.Hasp.GetInfo method to get a C2V file.
Feature Returns the HaspFeature object associated with the Hasp Class.