public class

SecurityConfiguration

extends XIncludeAwareParserConfiguration
java.lang.Object
   ↳ org.apache.xerces.util.ParserConfigurationSettings
     ↳ org.apache.xerces.parsers.XML11Configuration
       ↳ org.apache.xerces.parsers.XIncludeAwareParserConfiguration
         ↳ org.apache.xerces.parsers.SecurityConfiguration

Class Overview

This configuration allows Xerces to behave in a security-conscious manner; that is, it permits applications to instruct Xerces to limit certain operations that could be exploited by malicious document authors to cause a denail-of-service attack when the document is parsed. In addition to the features and properties recognized by the base parser configuration, this class recognizes these additional features and properties:

  • Properties
    • http://apache.org/xml/properties/security-manager

Summary

Constants
String SECURITY_MANAGER_PROPERTY
[Expand]
Inherited Constants
From class org.apache.xerces.parsers.XIncludeAwareParserConfiguration
From class org.apache.xerces.parsers.XML11Configuration
From class org.apache.xerces.util.ParserConfigurationSettings
[Expand]
Inherited Fields
From class org.apache.xerces.parsers.XIncludeAwareParserConfiguration
From class org.apache.xerces.parsers.XML11Configuration
From class org.apache.xerces.util.ParserConfigurationSettings
Public Constructors
SecurityConfiguration()
Default constructor.
SecurityConfiguration(SymbolTable symbolTable)
Constructs a parser configuration using the specified symbol table.
SecurityConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Constructs a parser configuration using the specified symbol table and grammar pool.
SecurityConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)
Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.
[Expand]
Inherited Methods
From class org.apache.xerces.parsers.XIncludeAwareParserConfiguration
From class org.apache.xerces.parsers.XML11Configuration
From class org.apache.xerces.util.ParserConfigurationSettings
From class java.lang.Object
From interface org.apache.xerces.xni.parser.XMLComponentManager
From interface org.apache.xerces.xni.parser.XMLParserConfiguration
From interface org.apache.xerces.xni.parser.XMLPullParserConfiguration

Constants

protected static final String SECURITY_MANAGER_PROPERTY

Constant Value: "http://apache.org/xml/properties/security-manager"

Public Constructors

public SecurityConfiguration ()

Default constructor.

public SecurityConfiguration (SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable The symbol table to use.

public SecurityConfiguration (SymbolTable symbolTable, XMLGrammarPool grammarPool)

Constructs a parser configuration using the specified symbol table and grammar pool.

REVISIT: Grammar pool will be updated when the new validation engine is implemented.

Parameters
symbolTable The symbol table to use.
grammarPool The grammar pool to use.

public SecurityConfiguration (SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)

Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

REVISIT: Grammar pool will be updated when the new validation engine is implemented.

Parameters
symbolTable The symbol table to use.
grammarPool The grammar pool to use.
parentSettings The parent settings.