Package org.yaml.snakeyaml.inspector
Class UnTrustedTagInspector
java.lang.Object
org.yaml.snakeyaml.inspector.UnTrustedTagInspector
- All Implemented Interfaces:
TagInspector
TagInspector which does not allow to create any custom instance. It should not be used when the
data comes from untrusted source to prevent possible remote code invocation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnTrustedTagInspector
public UnTrustedTagInspector()
-
-
Method Details
-
isGlobalTagAllowed
Allow none- Specified by:
isGlobalTagAllowed
in interfaceTagInspector
- Parameters:
tag
- - the global tag to reject- Returns:
- always return false
-