Class SecureProcessingConfiguration

  • All Implemented Interfaces:
    XML11Configurable, org.apache.xerces.xni.parser.XMLComponentManager, org.apache.xerces.xni.parser.XMLParserConfiguration, org.apache.xerces.xni.parser.XMLPullParserConfiguration

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

      • ENTITY_EXPANSION_LIMIT_SYSTEM_VALUE

        protected final int ENTITY_EXPANSION_LIMIT_SYSTEM_VALUE
      • MAX_OCCUR_LIMIT_SYSTEM_VALUE

        protected final int MAX_OCCUR_LIMIT_SYSTEM_VALUE
      • TOTAL_ENTITY_SIZE_LIMIT_SYSTEM_VALUE

        protected final int TOTAL_ENTITY_SIZE_LIMIT_SYSTEM_VALUE
      • MAX_GENERAL_ENTITY_SIZE_LIMIT_SYSTEM_VALUE

        protected final int MAX_GENERAL_ENTITY_SIZE_LIMIT_SYSTEM_VALUE
      • MAX_PARAMETER_ENTITY_SIZE_LIMIT_SYSTEM_VALUE

        protected final int MAX_PARAMETER_ENTITY_SIZE_LIMIT_SYSTEM_VALUE
      • RESOLVE_EXTERNAL_ENTITIES_SYSTEM_VALUE

        protected final boolean RESOLVE_EXTERNAL_ENTITIES_SYSTEM_VALUE
    • Constructor Detail

      • SecureProcessingConfiguration

        public SecureProcessingConfiguration()
        Default constructor.
      • SecureProcessingConfiguration

        public SecureProcessingConfiguration​(SymbolTable symbolTable)
        Constructs a parser configuration using the specified symbol table.
        Parameters:
        symbolTable - The symbol table to use.
      • SecureProcessingConfiguration

        public SecureProcessingConfiguration​(SymbolTable symbolTable,
                                             org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
        Constructs a parser configuration using the specified symbol table and grammar pool.

        Parameters:
        symbolTable - The symbol table to use.
        grammarPool - The grammar pool to use.
      • SecureProcessingConfiguration

        public SecureProcessingConfiguration​(SymbolTable symbolTable,
                                             org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool,
                                             org.apache.xerces.xni.parser.XMLComponentManager parentSettings)
        Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

        Parameters:
        symbolTable - The symbol table to use.
        grammarPool - The grammar pool to use.
        parentSettings - The parent settings.
    • Method Detail

      • checkEntitySizeLimits

        protected void checkEntitySizeLimits​(int sizeOfEntity,
                                             int delta,
                                             boolean isPE)
      • getProperty

        public java.lang.Object getProperty​(java.lang.String propertyId)
                                     throws org.apache.xerces.xni.parser.XMLConfigurationException
        Returns the value of a property.
        Specified by:
        getProperty in interface org.apache.xerces.xni.parser.XMLComponentManager
        Specified by:
        getProperty in interface org.apache.xerces.xni.parser.XMLParserConfiguration
        Overrides:
        getProperty in class XML11Configuration
        Parameters:
        propertyId - The property identifier.
        Returns:
        the value of the property
        Throws:
        org.apache.xerces.xni.parser.XMLConfigurationException - Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
      • setProperty

        public void setProperty​(java.lang.String propertyId,
                                java.lang.Object value)
                         throws org.apache.xerces.xni.parser.XMLConfigurationException
        setProperty
        Specified by:
        setProperty in interface org.apache.xerces.xni.parser.XMLParserConfiguration
        Overrides:
        setProperty in class XML11Configuration
        Parameters:
        propertyId -
        value -
        Throws:
        org.apache.xerces.xni.parser.XMLConfigurationException - If the requested feature is not known.