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 | 
|---|---|
| Config | Configures the behavior of the Licensing API for a specific application run-time session. | 
| 
                                                                         Encrypts a buffer using the AES encryption algorithm.  | 
                                                                |
| GetFile | Returns an instance of the HaspFile class. | 
| 
                                                                         Retrieves information according to customizable search parameters, and presents it according to customizable formats.  | 
                                                                |
| 
                                                                         Reads the current time from a HLTime or HLNetTime key.  | 
                                                                |
| 
                                                                         Retrieves information regarding a session context.  | 
                                                                |
| 
                                                                         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. | 
| 
                                                                         Logs in to a Feature, establishing a session context.  | 
                                                                |
| 
                                                                         Logs in to a Feature according to customizable search parameters.  | 
                                                                |
| 
                                                                         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. | 
| Config | Configures the behavior of the Licensing API for a specific application run-time session. | 
| 
                                                                         Writes an update for a Sentinel LDK license.  | 
                                                                |
| 
                                                                         Writes an update for a login session for a protection key.  | 
                                                                
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. | 
