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

public final Class SecureProcessingConfiguration

extends XIncludeAwareParserConfiguration
Class Inheritance
Imports
java.io.File, .FileInputStream, .FilterInputStream, .FilterReader, .IOException, .InputStream, .Reader, java.net.URL, java.util.Properties, org.apache.xerces.impl.Constants, .XMLEntityDescription, .XMLErrorReporter, org.apache.xerces.impl.dtd.XMLDTDProcessor, org.apache.xerces.impl.msg.XMLMessageFormatter, org.apache.xerces.util.SecurityManager, .SymbolTable, org.apache.xerces.xni.Augmentations, .XMLDTDHandler, .XMLLocator, .XMLResourceIdentifier, .XMLString, .XNIException, org.apache.xerces.xni.grammars.XMLGrammarPool, org.apache.xerces.xni.parser.XMLComponentManager, .XMLConfigurationException, .XMLDTDFilter, .XMLDTDScanner, .XMLDTDSource, .XMLEntityResolver, .XMLInputSource

This configuration enhances Xerces support for the JAXP secure processing feature.
Author
Michael Glavassevich, IBM
Version
$Id: SecureProcessingConfiguration.java 1718451 2015-12-07 20:17:23Z mrglavas $

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
SecureProcessingConfiguration.ExternalEntityMonitor

XMLEntityResolver which checks limits imposed by the application on the sizes of general and parameter entities.

pack-priv class
SecureProcessingConfiguration.InternalEntityMonitor

XMLDTDFilter which checks limits imposed by the application on the sizes of general and parameter entities.

Field Summary

Modifier and TypeField and Description
private static final boolean
DEBUG

Set to true for debugging

private static final int
private static final String
protected final int
private static final String
ENTITY_RESOLVER_PROPERTY

Property identifier: entity resolver.

private static final String
private static final String
private final SecureProcessingConfiguration.ExternalEntityMonitor
private SecureProcessingConfiguration.InternalEntityMonitor
private final boolean
private boolean
private SecurityManager
private int
private static Properties
jaxpProperties

Cache the contents of the jaxp.properties file, if used.

private static long
lastModified

Cache the timestamp of the jaxp.properties file, if used.

private static final String
private static final int
private static final String
protected final int
private static final int
private static final String
protected final int
private static final int
private static final String
protected final int
private static final boolean
private static final String
protected final boolean
private static final int
SECURITY_MANAGER_DEFAULT_ENTITY_EXPANSION_LIMIT

Xerces SecurityManager default value for entity expansion limit.

private static final int
SECURITY_MANAGER_DEFAULT_MAX_OCCUR_NODE_LIMIT

Xerces SecurityManager default value of number of nodes created.

private static final String
SECURITY_MANAGER_PROPERTY

Property identifier: security manager.

private static final int
private static final String
protected final int
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
SecureProcessingConfiguration()

Default constructor.

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

Constructs a parser configuration using the specified symbol table.

public
SecureProcessingConfiguration(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
SecureProcessingConfiguration(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

Modifier and TypeMethod and Description
protected void
checkEntitySizeLimits(int sizeOfEntity, int delta, boolean isPE)

protected void
private void
configurePipelineCommon(boolean isXML10)

protected void
private static void
debugPrintln(String msg)

Prints a message to standard error if debugging is enabled.

public Object

Returns:

the value of the property
getProperty
(String
The property identifier.
propertyId
)

Overrides org.apache.xerces.parsers.XML11Configuration.getProperty.

Implements org.apache.xerces.xni.parser.XMLParserConfiguration.getProperty, org.apache.xerces.xni.parser.XMLComponentManager.getProperty.

Returns the value of a property.
private int
getPropertyValue(String propertyName, int defaultValue)

private boolean
getPropertyValue(String propertyName, boolean defaultValue)

private static boolean
isDebugEnabled()

Returns true if debug has been enabled.

public void
Inherited from org.apache.xerces.parsers.XIncludeAwareParserConfiguration:
getFeaturesetFeature