public class XMLParserFactoryProducer extends Object
| Constructor and Description |
|---|
XMLParserFactoryProducer() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentBuilderFactory |
createSecureDocBuilderFactory()
Creates an instance of
DocumentBuilderFactory class with enabled XMLConstants.FEATURE_SECURE_PROCESSING property. |
public static DocumentBuilderFactory createSecureDocBuilderFactory() throws ParserConfigurationException
DocumentBuilderFactory class with enabled XMLConstants.FEATURE_SECURE_PROCESSING property.
Enabling this feature prevents from some XXE attacks (e.g. XML bomb)
See PPP-3506 for more details.ParserConfigurationException - if feature can't be enabledCopyright © 2017 Hitachi Vantara. All rights reserved.