Package org.yaml.snakeyaml.inspector
Class UnTrustedTagInspector
- java.lang.Object
-
- org.yaml.snakeyaml.inspector.UnTrustedTagInspector
-
- All Implemented Interfaces:
TagInspector
public final class UnTrustedTagInspector extends java.lang.Object implements 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 Constructor Description UnTrustedTagInspector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isGlobalTagAllowed(Tag tag)
Allow none
-
-
-
Method Detail
-
isGlobalTagAllowed
public boolean isGlobalTagAllowed(Tag tag)
Allow none- Specified by:
isGlobalTagAllowed
in interfaceTagInspector
- Parameters:
tag
- - the global tag to reject- Returns:
- always return false
-
-