Package net.shibboleth.idp.ui.csrf
Class CSRFTokenManager.DefaultCSRFTokenValidationPredicate
- java.lang.Object
-
- net.shibboleth.idp.ui.csrf.CSRFTokenManager.DefaultCSRFTokenValidationPredicate
-
- All Implemented Interfaces:
BiPredicate<CSRFToken,String>
- Enclosing class:
- CSRFTokenManager
private static class CSRFTokenManager.DefaultCSRFTokenValidationPredicate extends Object implements BiPredicate<CSRFToken,String>
A simple default CSRF token validation predicate. Tests the CSRF token matches the request token by exact string (sequence of characters) match. Tokens will not match, returns false, if either of the tokens are null.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultCSRFTokenValidationPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(CSRFToken csrfToken, String requestCSRFToken)-
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.BiPredicate
and, negate, or
-
-