Package io.vertigo.core.util
Class XmlUtil
- java.lang.Object
-
- io.vertigo.core.util.XmlUtil
-
public final class XmlUtil extends Object
XSD Validation.- Author:
- pchretien
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
secureXmlXXEByOwasp(DocumentBuilderFactory domFactory)
Secure XML parser with OWASP recommendations.static void
secureXmlXXEByOwasp(SAXParserFactory factory)
Secure XML parser with OWASP recommendations.static void
secureXmlXXEByOwasp(TransformerFactory tf)
Secure XML parser with OWASP recommendations.static void
secureXmlXXEByOwasp(SchemaFactory schemaFactory)
Secure XML parser with OWASP recommendations.static void
validateXmlByXsd(URL xml, URL xsd)
Util to validate XML with a XSD.
-
-
-
Method Detail
-
secureXmlXXEByOwasp
public static void secureXmlXXEByOwasp(SchemaFactory schemaFactory) throws SAXNotRecognizedException, SAXNotSupportedException
Secure XML parser with OWASP recommendations.- Parameters:
schemaFactory
- SchemaFactory- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
secureXmlXXEByOwasp
public static void secureXmlXXEByOwasp(SAXParserFactory factory) throws SAXNotRecognizedException, SAXNotSupportedException, ParserConfigurationException
Secure XML parser with OWASP recommendations.- Parameters:
schemaFactory
- SchemaFactory- Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
-
secureXmlXXEByOwasp
public static void secureXmlXXEByOwasp(TransformerFactory tf) throws TransformerConfigurationException
Secure XML parser with OWASP recommendations.- Parameters:
tf
- TransformerFactory- Throws:
TransformerConfigurationException
-
secureXmlXXEByOwasp
public static void secureXmlXXEByOwasp(DocumentBuilderFactory domFactory) throws ParserConfigurationException
Secure XML parser with OWASP recommendations.- Parameters:
domFactory
- DocumentBuilderFactory- Throws:
ParserConfigurationException
-
-