The license token is used to check permission of software usage, and maintains the list in table t_licensetokens. More...
Public Member Functions | |
| void | clear () |
| Clears the token and releases the license for re-use. | |
| LicenseToken (Datastore aDatastore, String aLicenser, String aLicenseGroup, String aProgram) | |
| Constructor for the LicenseToken objects. | |
| void | update () |
| Makes sure the token is still present and unmodified in table t_licensetokens, and updates the timestamp. | |
| Date | validate () |
| Checks the license token. | |
The license token is used to check permission of software usage, and maintains the list in table t_licensetokens.
It is good practice for all applications to create and validate, and regularly update license tokens, even if usage of a license group is free and unlimited. That way all activities of the system can be monitored.
| bps::LicenseToken::LicenseToken | ( | Datastore | aDatastore, |
| String | aLicenser, | ||
| String | aLicenseGroup, | ||
| String | aProgram | ||
| ) |
Constructor for the LicenseToken objects.
The token needs to be validated before becoming effective.
| aDatastore | The current datastore connection. Should be connected and checked in. |
| aLicenser | Name of the software license granter. |
| aLicenseGroup | Name of the license group. |
| aProgram | Name of the program. |
| void bps::LicenseToken::clear | ( | ) |
Clears the token and releases the license for re-use.
The token is also cleared when the object is destructed.
| void bps::LicenseToken::update | ( | ) |
Makes sure the token is still present and unmodified in table t_licensetokens, and updates the timestamp.
This method should be called regularly by the application.
| Error | thrown when no success. |
| Date bps::LicenseToken::validate | ( | ) |
Checks the license token.
This is the first action to do after creating the new token.
| Error | thrown when validation fails. |