Class TrustedTagInspector

  • All Implemented Interfaces:
    org.yaml.snakeyaml.inspector.TagInspector

    public final class TrustedTagInspector
    extends Object
    implements org.yaml.snakeyaml.inspector.TagInspector
    TagInspector which allows to create any custom instance. Should not be used when the data comes from untrusted source to prevent possible remote code invocation.
    • Constructor Detail

      • TrustedTagInspector

        public TrustedTagInspector()
    • Method Detail

      • isGlobalTagAllowed

        public boolean isGlobalTagAllowed​(org.yaml.snakeyaml.nodes.Tag tag)
        Allow any
        Specified by:
        isGlobalTagAllowed in interface org.yaml.snakeyaml.inspector.TagInspector
        Parameters:
        tag - - the global tag to allow
        Returns:
        always return true