Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.license   Previous This
Package
Next

 


Class License

public class License
{
  // Methods
  public static void validate(Object obj, String server,
        String lic, boolean runtime) throws LicenseException;
}

This class supports the validate method, which is used to validate a license for a Java object.

Methods

validate

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.

ParameterDescription
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.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.