Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

key_verify/2—validate and retrieve fields from a license  key


The syntax for key_verify/2 is as follows:

key_verify($KEY,$FIELDS)

key_verify/2 arguments 

Argument

Mode

Type

Description

$KEY

Input

STRING

Specifies the license key

$FIELDS

Output

LIST_OF STRING

List of fields from key

Use the key_verify/2 to validate license key $KEY and to retrieve fields from the license key in $FIELDS.

A license key is a string containing licensing information, as provided by BMC.

The application is responsible to determine the exact number of fields that are expected in the key. The $FIELDS argument has to be specified as a list of as many variables as the number of fields.

This primitive will fail if the key is invalid or if the number of fields is not exact. It can be used in an if-statement to test for succes.

key_verify/2 example

if ( key_verify($KEY,[$FLD1,$FLD2]) ) then ...

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*