Package net.shibboleth.idp.ui.csrf.impl
Class DefaultViewRequiresCSRFTokenPredicate
- java.lang.Object
-
- net.shibboleth.idp.ui.csrf.BaseCSRFTokenPredicate
-
- net.shibboleth.idp.ui.csrf.impl.DefaultViewRequiresCSRFTokenPredicate
-
- All Implemented Interfaces:
Predicate<RequestContext>
public class DefaultViewRequiresCSRFTokenPredicate extends BaseCSRFTokenPredicate implements Predicate<RequestContext>
Default
Predicatefor determining if a CSRF token is required for the given request context. Guaranteed to be in a view-state when tested by theCSRFTokenFlowExecutionListener.Returns true if the view-state requires a CSRF token. More specifically, returns true iff the state definition does not contain a
"csrf_excluded"metadata attribute with a value oftrue.
-
-
Field Summary
-
Fields inherited from class net.shibboleth.idp.ui.csrf.BaseCSRFTokenPredicate
CSRF_EXCLUDED_ATTRIBUTE_NAME
-
-
Constructor Summary
Constructors Constructor Description DefaultViewRequiresCSRFTokenPredicate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(RequestContext context)-
Methods inherited from class net.shibboleth.idp.ui.csrf.BaseCSRFTokenPredicate
safeGetBooleanStateAttribute
-
-
-
-
Method Detail
-
test
public boolean test(@Nonnull RequestContext context)- Specified by:
testin interfacePredicate<RequestContext>
-
-