Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Jul 28, 2012 2:16 am Post subject: HOWTO: Access license settings without validating the license. |
|
|
When the CCryptoLicense.GetStatus() method is accessed, license validation occurs which is performed in two steps. First, cryptographic validation occurs which means the cryptographic signature of the license code is verified using the validation key specified via the CCryptoLicense.SetValidationKey() method. Next, any limits/settings specified in the license code are validated; for example if the license code specifies a "Max Activations" setting, then CryptoLicensing automatically communicates with the license service to activate the license.
However, under certain circumstances, you may want to simply access license settings without actually validating the license. To do this, first ensure that the license code is cryptographically valid by calling the CCryptoLicense.ValidateSignature() method. Next, you can access the methods like CCryptoLicense.GetUserData() (to access the embeded user-data), CCryptoLicense.GetMaxActivations(), CCryptoLicense.GetMaxUsageDays(), etc. |
|