public class SecureGenericXMLFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SecureGenericXMLFactory.SecureDocumentBuilderFactory
Wraps an existing DocumentBuilderFactory and ensures that any returned
DocumentBuilder instances are secure.
|
protected static class |
SecureGenericXMLFactory.SecureSAXParserFactory
Wraps an existing SAXParserFactory and ensures that any returned
SAXParser instances are secure.
|
Modifier | Constructor and Description |
---|---|
protected |
SecureGenericXMLFactory() |
Modifier and Type | Method and Description |
---|---|
static javax.xml.parsers.DocumentBuilderFactory |
getDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory factory) |
static javax.xml.parsers.SAXParserFactory |
getSAXParserFactory(javax.xml.parsers.SAXParserFactory factory) |
public static javax.xml.parsers.SAXParserFactory getSAXParserFactory(javax.xml.parsers.SAXParserFactory factory) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public static javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory factory)