- java.lang.Object
-
- io.github.pixee.security.XMLInputFactorySecurity
-
public final class XMLInputFactorySecurity extends java.lang.ObjectThis type exposes helper methods that will help defend against XXE attacks inXMLInputFactory.For more on XXE:
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.stream.XMLInputFactoryhardenFactory(javax.xml.stream.XMLInputFactory factory)Harden theXMLInputFactoryagainst external entity attacksstatic javax.xml.stream.XMLInputFactoryhardenFactory(javax.xml.stream.XMLInputFactory factory, java.util.Set<XMLRestrictions> restrictions)Harden theXMLInputFactoryagainst XML-based attacks with the given restrictions.
-
-
-
Method Detail
-
hardenFactory
public static javax.xml.stream.XMLInputFactory hardenFactory(javax.xml.stream.XMLInputFactory factory)
Harden theXMLInputFactoryagainst external entity attacks
-
hardenFactory
public static javax.xml.stream.XMLInputFactory hardenFactory(javax.xml.stream.XMLInputFactory factory, java.util.Set<XMLRestrictions> restrictions)Harden theXMLInputFactoryagainst XML-based attacks with the given restrictions.
-
-