Package org.wildfly.common.xml
Class XMLReaderFactoryUtil
- java.lang.Object
-
- org.wildfly.common.xml.XMLReaderFactoryUtil
-
public final class XMLReaderFactoryUtil extends java.lang.ObjectFactory providesXMLReaderFactorywith secure defaults set. Properties not supported generate a warning, but the factory process creation will continue and return a result. Settings based on recommendations of Sonarcloud RSPEC-2755 and OWASP XML External Entity Prevention Cheatsheet.FactoryConstants.APACHE_DISALLOW_DOCTYPE_DECLis set to true.FactoryConstants.APACHE_LOAD_EXTERNAL_DTDis set to false.FactoryConstants.XML_EXTERNAL_GENERAL_ENTITIESis set to false.FactoryConstants.XML_EXTERNAL_PARAMETER_ENTITIESis set to false.
- Since:
- 1.6.0.Final
- Author:
- Boris Unckel
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.xml.sax.XMLReadercreate()Factory generated with secure defaults.
-
-
-
Method Detail
-
create
@NotNull public static org.xml.sax.XMLReader create() throws org.xml.sax.SAXException
Factory generated with secure defaults.- Returns:
- an instance of the XMLInputFactory.
- Throws:
org.xml.sax.SAXException
-
-