Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.content.sealing
Class PublicHeaderLengthException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.irm.engine.content.sealing.PublicHeaderLengthException

All Implemented Interfaces:
Serializable

public class PublicHeaderLengthException
extends RuntimeException

Public header length exception. When sealed content is created (or resealed) a public header is written into sealed content as XML. The public header has a maximum size defined that prevents creation of large public headers. A public header will typically only exceed the maximum size if the custom data or classification cookie are large.

The error message associated with this exception is:

IRM-01078: The public header cannot exceed {1} bytes in length. The current public header when written as XML has a length of {0} bytes. Reduce the amount of data provided in the custom data or classification cookie.
See Also:
Serialized Form

Constructor Summary
PublicHeaderLengthException(int length, int maximum)
          Constructor.
PublicHeaderLengthException(int length, int maximum, Throwable cause)
          Constructor.

 

Method Summary
 int getLength()
          Actual length.
 int getMaximum()
          Maximum length.

 

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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

PublicHeaderLengthException

public PublicHeaderLengthException(int length,
                                   int maximum)
Constructor.
Parameters:
length - Actual length.
maximum - Maximum length.

PublicHeaderLengthException

public PublicHeaderLengthException(int length,
                                   int maximum,
                                   Throwable cause)
Constructor.
Parameters:
length - Actual length.
maximum - Maximum length.
cause - Cause of the exception.

Method Detail

getLength

public final int getLength()
Actual length.
Returns:
the value of the property.

getMaximum

public final int getMaximum()
Maximum length.
Returns:
the value of the property.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.