Class License
Deprecated in 7.1.
Syntax
Constructors
License()
Deprecated in 7.1.
Declaration
License
License(String,String)
Deprecated in 7.1.
Declaration
License(String host, String license)
Parameters
Type | Name | Description |
---|---|---|
String | host | Hostname string" |
String | license | License key." |
Returns
Type | Description |
---|---|
License | License object. |
Methods
getInfo()
Deprecated in 7.1.
Gets info about license key. Checks if its legal and print hostname and modules.Declaration
String getInfo()
Returns
Type | Description |
---|---|
String |
getReasonInvalid()
Deprecated in 7.1.
Checks if the license key is valid and returns the reason as a string.Declaration
String getReasonInvalid()
Returns
Type | Description |
---|---|
String | Reason why not valid or null string if valid. |
getValue(String)
Deprecated in 7.1.
Extracts a value from the license key.Declaration
String getValue(String name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the value to extract. |
Returns
Type | Description |
---|---|
String |
Remarks
Available values:
- users
- The number of users
- simUsers
- The number of simultaneous users
- readUsers
- The number of read users
- simReadUsers
- The number of simultaneous read only users
- companyId
- ID of the company owning the key. (Only relevant internal use)
- expire
- Expire date
- key
- The license key as a text string
legalKey()
Deprecated in 7.1.
Determines if a license key is legal or not.Declaration
Bool legalKey()
Returns
Type | Description |
---|---|
Bool | True if the key is legal. |
toParser(Parser)
Deprecated in 7.1.
Fills a Parser object with License values.Declaration
toParser(Parser parser)
Parameters
Type | Name | Description |
---|---|---|
Parser | parser | The Parser instance to populate with values. |
Returns
Type | Description |
---|---|
Void |