Packages
 In this topic

*Classes

*Interfaces

*Hierarchy

 

Packages   PackagesNext
Package com.ms.license   Packages Next

 


About com.ms.license

This 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). 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 an 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).

Classes

Class License
This class supports the validate method, which is used to validate a license for a Java object.
Class LicenseException
This class represents an exception that is thrown when a Java object tries to access a license that either does not exist or is not valid.

Interfaces

Interface LicenseDescriptor
This interface describes the signature of a license object.
Interface LicenseManager
This interface serves as a specification for how to implement a license manager.

Hierarchy

Object
  |
  +--License

Exception
  |
  +--LicenseException

LicenseDescriptor
LicenseManager

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