Class CsrfPreventionFilter.MimePredicate

  • All Implemented Interfaces:
    java.util.function.Predicate<java.lang.String>
    Enclosing class:
    CsrfPreventionFilter

    protected static class CsrfPreventionFilter.MimePredicate
    extends java.lang.Object
    implements java.util.function.Predicate<java.lang.String>
    A no-nonce Predicate that evaluates a MIME type instead of a URL. It can be used with any other Predicate for matching the actual value of the MIME type.
    • Constructor Summary

      Constructors 
      Constructor Description
      MimePredicate​(ServletContext context, java.util.function.Predicate<java.lang.String> predicate)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.function.Predicate<java.lang.String> getPredicate()  
      boolean test​(java.lang.String t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • MimePredicate

        public MimePredicate​(ServletContext context,
                             java.util.function.Predicate<java.lang.String> predicate)
    • Method Detail

      • test

        public boolean test​(java.lang.String t)
        Specified by:
        test in interface java.util.function.Predicate<java.lang.String>
      • getPredicate

        public java.util.function.Predicate<java.lang.String> getPredicate()