public class ParserSecurityUtils extends Object
Constructor and Description |
---|
ParserSecurityUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
applySecurityParserSettings(DocumentBuilderFactory factory)
Sets the following features on the given @param factory
http://apache.org/xml/features/disallow-doctype-decl : disables the usage of DOCTYPE
completely
http://xml.org/sax/features/external-general-entities : disable external entity resolution
http://xml.org/sax/features/external-parameter-entities : disable external entity resolution
xIncludeAware : Disable XML inclusion
|
static void |
applySecurityParserSettings(SAXParserFactory factory)
Sets the following features on the given @param factory
http://apache.org/xml/features/disallow-doctype-decl : disables the usage of DOCTYPE
completely
http://xml.org/sax/features/external-general-entities : disable external entity resolution
http://xml.org/sax/features/external-parameter-entities : disable external entity resolution
xIncludeAware : Disable XML inclusion
|
static void |
applySecurityParserSettings(XMLInputFactory factory)
Sets the following features on the given @param factory
XMLInputFactory.SUPPORT_DTD : disables the usage of DOCTYPE completely
|
public static void applySecurityParserSettings(DocumentBuilderFactory factory)
factory
- The factory which features should be setpublic static void applySecurityParserSettings(SAXParserFactory factory)
factory
- The factory which features should be setpublic static void applySecurityParserSettings(XMLInputFactory factory)
factory
- The factory which features should be setCopyright © 2024 levigo holding gmbh. All rights reserved.