Microsoft SDK for Java

com.ms.license Package Overview

Microsoft Packages Overview

The com.ms.license package includes classes that support Java object licensing files. Licensing files are used to license a Java class, package, or archive to a particular user or for a trial period (or both).

This package contains the following:

Classes

Interfaces

Hierarchy

Java object license files are stored in an encrypted eXtended Markup Language (.xml) file with the following format:

<license>

        <licensedescriptor>
                <name>name</name>
                <type>CLASS|PACKAGE|ARCHIVE</type>
                <style>DESIGN|RUNTIME</style>
                <server>URL</server>
                <user>username</user>
                <date>date</date>
                <key>key-string</key>
        </licensedescriptor>

</license>

The .xml file must be named license.xml, and either be located in the same directory as the files that it licenses, or at a URL specified in License.validate. License.xml may have only one <license> tag pair, but as many <licensedescriptor> pairs as needed to license the contents of the current directory.

Licenses may be either RUNTIME or DESIGN. If the style is DESIGN, the license is checked when the container is in design mode. If the style is RUNTIME, the license manager will fail and throw a LicenseException (this prevents developers from incorporating a runtime component into an application).

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