Skip navigation links

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

E12907-01


oracle.irm.engine.content.sealing
Enum ContentParseException.Reason

java.lang.Object
  extended by java.lang.Enum<ContentParseException.Reason>
      extended by oracle.irm.engine.content.sealing.ContentParseException.Reason

All Implemented Interfaces:
Serializable, Comparable<ContentParseException.Reason>
Enclosing class:
ContentParseException

public static enum ContentParseException.Reason
extends Enum<ContentParseException.Reason>

The reason for the parse error.


Enum Constant Summary
CONTENT_TRUNCATED
          Truncated sealed content.
MAGIC_NOT_FOUND
          The sealed content magic value was not found.
PREAMBLE_NOT_FOUND
          The sealed content preamble was not found.
PRIVATE_BLOCK_DIGEST_MISMATCH
          The encrypted data has been modified.
PRIVATE_HEADER_CORRUPT
          The contents of a sealed content private header are invalid.
PUBLIC_HEADER_CORRUPT
          The public header XML is badly formed.
PUBLIC_HEADER_DATA_DIGEST_MISMATCH
          A private header does not match the public header.
PUBLIC_HEADER_MISSING
          The public header is not present in the sealed content.
PUBLIC_HEADER_SIGNATURE_CORRUPT
          The public header signatures XML is badly formed.
PUBLIC_HEADER_SIGNATURE_MISMATCH
          The public header has failed signature verification.
PUBLIC_HEADER_SIGNATURE_MISSING
          The public header signatures are not present in the sealed content.
XML_BLOCK_EMPTY
          An XML block in sealed content is empty.
XML_BLOCK_INVALID_SIZE
          An XML block in sealed content has an invalid size.
XML_BLOCK_TRUNCATED
          An XML block in sealed content is truncated or missing.

 

Method Summary
static ContentParseException.Reason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContentParseException.Reason[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.

 

Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Enum Constant Detail

CONTENT_TRUNCATED

public static final ContentParseException.Reason CONTENT_TRUNCATED
Truncated sealed content. The end of sealed content was encountered when more data was expected.

XML_BLOCK_INVALID_SIZE

public static final ContentParseException.Reason XML_BLOCK_INVALID_SIZE
An XML block in sealed content has an invalid size. When reading XML from sealed content the size of the XML is written into the file. This error code indicates the size read is invalid (e.g. negative or too large a value).

XML_BLOCK_EMPTY

public static final ContentParseException.Reason XML_BLOCK_EMPTY
An XML block in sealed content is empty.

XML_BLOCK_TRUNCATED

public static final ContentParseException.Reason XML_BLOCK_TRUNCATED
An XML block in sealed content is truncated or missing.

PREAMBLE_NOT_FOUND

public static final ContentParseException.Reason PREAMBLE_NOT_FOUND
The sealed content preamble was not found. This error code indicates that the content is probably not a sealed.

MAGIC_NOT_FOUND

public static final ContentParseException.Reason MAGIC_NOT_FOUND
The sealed content magic value was not found. This error code indicates that the content is probably corrupt or not sealed.

PUBLIC_HEADER_MISSING

public static final ContentParseException.Reason PUBLIC_HEADER_MISSING
The public header is not present in the sealed content. This error code indicates that a valid XML document was found where the public header should be, but the XML document was not a public header. This error indicates that the XML has been modified.

PUBLIC_HEADER_CORRUPT

public static final ContentParseException.Reason PUBLIC_HEADER_CORRUPT
The public header XML is badly formed. This error code indicates that the public header XML cannot be parsed. This error indicates that the XML has been corrupted.

PUBLIC_HEADER_SIGNATURE_MISMATCH

public static final ContentParseException.Reason PUBLIC_HEADER_SIGNATURE_MISMATCH
The public header has failed signature verification. This error code indicates that the public header XML has a valid structure but the contents have been modified.

PUBLIC_HEADER_SIGNATURE_MISSING

public static final ContentParseException.Reason PUBLIC_HEADER_SIGNATURE_MISSING
The public header signatures are not present in the sealed content. This error code indicates that a valid XML document was found where the public header signatures should be, but the XML document was not a public header signature. This error indicates that the XML has been modified.

PUBLIC_HEADER_SIGNATURE_CORRUPT

public static final ContentParseException.Reason PUBLIC_HEADER_SIGNATURE_CORRUPT
The public header signatures XML is badly formed. This error code indicates that the public header signatures XML cannot be parsed. This error indicates that the XML has been corrupted.

PUBLIC_HEADER_DATA_DIGEST_MISMATCH

public static final ContentParseException.Reason PUBLIC_HEADER_DATA_DIGEST_MISMATCH
A private header does not match the public header. This error code indicates that the content has probably been corrupted.

PRIVATE_BLOCK_DIGEST_MISMATCH

public static final ContentParseException.Reason PRIVATE_BLOCK_DIGEST_MISMATCH
The encrypted data has been modified. The contents of a block appear to have been corrupted. This error code indicates that the content has probably been corrupted.

PRIVATE_HEADER_CORRUPT

public static final ContentParseException.Reason PRIVATE_HEADER_CORRUPT
The contents of a sealed content private header are invalid. This error code indicates that the content has probably been corrupted.

Method Detail

values

public static ContentParseException.Reason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ContentParseException.Reason c : ContentParseException.Reason.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ContentParseException.Reason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Skip navigation links

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

E12907-01


Copyright © 2010, Oracle. All rights reserved.