com.deltaxml.odf
Class InvalidOdfLicenseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.deltaxml.odf.OdfException
              extended by com.deltaxml.odf.OdfLicensingException
                  extended by com.deltaxml.odf.InvalidOdfLicenseException
All Implemented Interfaces:
Serializable

Deprecated.

public class InvalidOdfLicenseException
extends OdfLicensingException

An exception indicating that the wrong type of license was found at runtime. This could be caused by a problem with activation or by a malicious attempt to subvert the licensing mechanism.

For example, when loading licenses from a system-preferences node, a named-user license would not be expected and this exception would be thrown.

See Also:
Serialized Form

Constructor Summary
InvalidOdfLicenseException(String product, String expected, String provided)
          Deprecated. Constructs a new InvalidOdfLicenseException with a default message.
InvalidOdfLicenseException(String message, String product, String expected, String provided)
          Deprecated. Constructs a new InvalidOdfLicenseException with a configurable message.
 
Method Summary
 String getExpectedLicenseType()
          Deprecated. Reports the expected type of license corresponding to the location from which the license was loaded.
 String getProvidedLicenseType()
          Deprecated. Reports the type of license loaded.
 
Methods inherited from class com.deltaxml.odf.OdfLicensingException
getProduct
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidOdfLicenseException

public InvalidOdfLicenseException(String product,
                                  String expected,
                                  String provided)
Deprecated. 
Constructs a new InvalidOdfLicenseException with a default message.

Parameters:
product - the ODF product for which the invalid license has been found
expected - the type of license expected
provided - the type of license actually provided

InvalidOdfLicenseException

public InvalidOdfLicenseException(String message,
                                  String product,
                                  String expected,
                                  String provided)
Deprecated. 
Constructs a new InvalidOdfLicenseException with a configurable message.

Parameters:
message - the exception message
product - the ODF product for which the invalid license has been found
expected - the type of license expected
provided - the type of license actually provided
Method Detail

getExpectedLicenseType

public String getExpectedLicenseType()
Deprecated. 
Reports the expected type of license corresponding to the location from which the license was loaded.

Returns:
a String indicating the license type

getProvidedLicenseType

public String getProvidedLicenseType()
Deprecated. 
Reports the type of license loaded.

Returns:
a String indicating the license type


© 2001-2009 DeltaXML Ltd. All Rights Reserved.