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
-
Method Summary
Modifier and TypeMethodDescriptionresolveEntity
(String publicId, String systemId) Throws a SAXException if this tried to resolve any entity.
-
Field Details
-
INSTANCE
-
-
Method Details
-
resolveEntity
Throws a SAXException if this tried to resolve any entity.- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-