Format XML Tags

When using the GetInfo and GetSessionInfo methods, you use XML tags in the Format field to specify the data that should be retrieved by the method.

These Format XML tags are also used by the method to label the retrieved information.

The Format XML tags that you specify (and their arrangement) in the Format field determine both which information is retrieved by the method and the manner in which the retrieved information is presented. For example, if you request a list of all the protection keys and all of the Features in the licenses in the scope, the tags can be arranged to return either of the following:

>separate lists of all the Features and all the protection keys in the scope.

>a list of all the Features in each protection key in the scope.

The topics that follow describe the XML elements that are available for this purpose.

> For GetSessionInfo, the information returned relates to the current session.

> For GetInfo, the information returned relates to the source specified by the scope used to call the method.

You can also choose from predefined templates and aliases to retrieve certain sets of information.

Refer to Using XML Tags to Define Format for additional information about creating Format templates using XML tags.

The following types of XML tags are described below:

>Common XML tags

>Predefined Format templates and Aliases

Common XML Tags

The tables that follow describes the XML tags that are common to most types of information that are returned by the methods.

 

 

 

 

 

 

Predefined Format Templates and Aliases

Predefined Format templates are special Format XML that you can specify in the format parameter to simplify the retrieval of commonly-used blocks of information.

Predefine Aliases are special aliases that you can specify in the format parameter directly in the call to the GetInfo and GetSessionInfo methods to simplify the retrieval of this information.

For example: To request the information for the connected Sentinel HL key, you could use one of the following:

> Predefined Format XML: keyinfo

<haspformat format="keyinfo"/>

> Predefined alias: Hasp.KeyInfo

Dim info as String = Nothing status = hasp.GetSessionInfo(Hasp.KeyInfo, info

The table that follows describes the predefined Format XML templates and predefined aliases that are available. (Click each Format XML template or Alias for more information.)

Predefined Format XML Templates

Predefined Aliases

Description

updateinfo

Hasp.UpdateInfo

Requests the information required to process updates (C2V).

NOTE   In Sentinel LDK Toolbox, this Format Template is referred to as “Create C2V”.

 

keyinfo

Hasp.Keyinfo

Requests information for the connected Sentinel HL key in the current session (only applicable for the GetSessionInfo method).

sessioninfo

Hasp.SessionInfo

Requests information on the current login session (only applicable for the GetSessionInfo method).

host_fingerprint

Hasp.Fingerprint

Requests the fingerprint of a computer that is to receive a locked protection key.

 

Hasp.Recipient

Retrieves information about the recipient (destination) computer for the Transfer method.

Equivalent XML definition:

<haspformat root="location">
   <license_manager>
      <attribute name="id"/>
      <attribute name="time"/>
      <element name="hostname"/>
      <element name="version"/>
      <element name="host_fingerprint"/>
   </license_manager>
</haspformat>

Related Topics

About XML Tags

Scope Input XML Tags

XML Usage Samples