Microsoft SDK for Java

validate

This method of the License Class 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 run-time is true, the license.xml file is required and needs to be packaged with the component.

Syntax

public static void validate(Object obj, String server, String lic, boolean run-time) throws LicenseException;

Parameters

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.
run-time The license is runtime only.

Exceptions

com.ms.license.LicenseException if the validation fails.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.