bpieslak
Joined: 05 Mar 2007 Posts: 6
|
Posted: Tue Mar 06, 2007 3:58 pm Post subject: allow licenseKey to be stored outside of the .lic file |
|
|
I would like to store the licenseKey for my product in a database, rather than in the .lic file.
I have implemented this locally with the 3.2.4 source code, and it works pretty well.
I modified the EncryptedLicenseProvider class to have 2 new protected overridable methods "WriteKeyToPersistentMedium" and "ReadKeyFromPersistentMedium". The base implementation of these methods is that current functionality where the key is stored in the .lic file.
I can then inherit from EncryptedLicenseProvider and override these methods, allowing me to put the licenseKey somewhere else.
The basic idea comes from how the base Page class exposes overridable methods for reading & writing the ViewState. The default implementation is to write the ViewState into the HttpResponse, but you can also write your own custom implementation too by overriding 2 methods.
I'd be glad to provide my source code if you'd like it.
Cheers,
-Brian |
|