Class UnTrustedTagInspector

  • All Implemented Interfaces:
    TagInspector

    public final class UnTrustedTagInspector
    extends Object
    implements TagInspector
    TagInspector, which does not allow creating any custom instance. It should be used when the data comes from an untrusted source to prevent possible remote code invocation.
    • Constructor Detail

      • UnTrustedTagInspector

        public UnTrustedTagInspector()
    • Method Detail

      • isGlobalTagAllowed

        public boolean isGlobalTagAllowed​(Tag tag)
        Allow none
        Specified by:
        isGlobalTagAllowed in interface TagInspector
        Parameters:
        tag - - the global tag to reject
        Returns:
        always return false