Open topic with navigation
SimpleTextEditorSelfSigned Sample
Overview
The SimpleTextEditoSelfSigned sample application is similar to the SimpleTextEditorReadOnly sample, and is designed to showcase basic online activation and usage of encrypted and signed XML License Files and web service calls while only using the most secure features of PLUSManagedwhere licenses are authorized and digitally signed by SOLO Server.
Design Outline
- Licensing logic is implemented in the SelfSignedLicense class, which inherits the PLUSManaged library's WritableLicense class. The SelfSignedLicense class includes data specific to this application and its author, and methods specific to the licensing needs of this application.
- This class contains 1 simple constructor that takes in a path to a license file since this sample revolves around this. This then calls the WritableLicense class's constructor passing in data specific to this particular application, and initializes data for uniquely identifying the system on which the application is run.
- It also implements its own license validation in the IsValid property. Depending on the type of license, this may perform various combinations of checks to determine whether or not the license should be considered valid on the system on which it is run.
- Several forms are used, none of which perform licensing functions directly, as this is all abstracted out in the SelfSignedLicense class and the PLUSManaged library's WritableLicense class. However, they provide the means to display licensing information and perform common licensing functions.
- In order to show how an application might look and function after licensing logic has been integrated with it, the main form resembles a standard text editor, similar to Windows Notepad.
- The about form shows the license status, and provides buttons to perform common licensing functions (such as activating).
- The online activation form - This form allows a license to be activated online through web service calls, and is the simplest way a user may activate his or her license.
- The manual activation form allows manual activation to be done when web services are unreachable. This does, however, require the user to send data through some alternative form of transmission, such as sending an email or using a web page. This can be useful in situations where an application/personal firewall blocks web service calls, for example.