Top Description Fields Constructors Methods
org.apache.xerces.parsers

public Class SecurityConfiguration

extends XIncludeAwareParserConfiguration
Class Inheritance
Imports
org.apache.xerces.impl.Constants, org.apache.xerces.util.SecurityManager, .SymbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool, org.apache.xerces.xni.parser.XMLComponentManager

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:
Author
Neil Graham, IBM
Version
$Id: SecurityConfiguration.java 699892 2008-09-28 21:08:27Z mrglavas $

Field Summary

Modifier and TypeField and Description
protected static final String
Inherited from org.apache.xerces.parsers.XIncludeAwareParserConfiguration:
ALLOW_UE_AND_NOTATION_EVENTSfCurrentNSContextfNonXIncludeNSContextfXIncludeEnabledfXIncludeHandlerfXIncludeNSContextNAMESPACE_CONTEXTXINCLUDE_FEATUREXINCLUDE_FIXUP_BASE_URISXINCLUDE_FIXUP_LANGUAGEXINCLUDE_HANDLER

Constructor Summary

AccessConstructor and Description
public
SecurityConfiguration()

Default constructor.

public
SecurityConfiguration(SymbolTable
The symbol table to use.
symbolTable
)

Constructs a parser configuration using the specified symbol table.

public
SecurityConfiguration(SymbolTable
The symbol table to use.
symbolTable
,
XMLGrammarPool
The grammar pool to use.
grammarPool
)

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

public
SecurityConfiguration(SymbolTable
The symbol table to use.
symbolTable
,
XMLGrammarPool
The grammar pool to use.
grammarPool
,
XMLComponentManager
The parent settings.
parentSettings
)

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

Method Summary

Inherited from org.apache.xerces.parsers.XIncludeAwareParserConfiguration:
configurePipelineconfigureXML11PipelinegetFeaturesetFeature

Field Detail

SECURITY_MANAGER_PROPERTYback to summary
protected static final String SECURITY_MANAGER_PROPERTY

Constructor Detail

SecurityConfigurationback to summary
public SecurityConfiguration()

Default constructor.

SecurityConfigurationback to summary
public SecurityConfiguration(SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable:SymbolTable

The symbol table to use.

SecurityConfigurationback to summary
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:SymbolTable

The symbol table to use.

grammarPool:XMLGrammarPool

The grammar pool to use.

SecurityConfigurationback to summary
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:SymbolTable

The symbol table to use.

grammarPool:XMLGrammarPool

The grammar pool to use.

parentSettings:XMLComponentManager

The parent settings.