Package jenkins.util.xml
Class RestrictiveEntityResolver
- java.lang.Object
-
- jenkins.util.xml.RestrictiveEntityResolver
-
- All Implemented Interfaces:
EntityResolver
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class RestrictiveEntityResolver extends Object implements EntityResolver
An EntityResolver that will fail to resolve any entities. Useful in preventing External XML Entity injection attacks.
-
-
Field Summary
Fields Modifier and Type Field Description static RestrictiveEntityResolver
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSource
resolveEntity(String publicId, String systemId)
Throws a SAXException if this tried to resolve any entity.
-
-
-
Field Detail
-
INSTANCE
public static final RestrictiveEntityResolver INSTANCE
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
Throws a SAXException if this tried to resolve any entity.- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
-