public static void validate(Object obj, String server, String lic,
boolean runtime) throws LicenseException;
Validates a license for a Java object. An object can call the License. validate method and specify if the license file is necessary at runtime. If runtime is false, the license manager will not check the license.xml file at runtime. If runtime is true, the license.xml file is required and needs to be packaged with the component.
Return Value:
No return value.
Parameter | Description |
obj
| The object to find the license for.
|
server
| The server URL to get the license.xml file from if the license is server-side. Set this parameter to null if the license is client-side (the license.xml file is located in the same directory as the class, package, or archive).
|
lic
| The string to use for license comparison.
|
runtime
| The license is runtime only.
|
Exceptions:
com.ms.license.LicenseException
if the validation fails.