Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Access license settings without validating the license.

 
Subscribe to the RSS feed for this forum  Forum Index -> CryptoLicensing For MFC
View previous topic :: View next topic  
Author Message
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.
Back to top
Display posts from previous:   
Forum Index -> CryptoLicensing For MFC All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group