Class CsrfCookieRequestMatcher
java.lang.Object
org.apache.nifi.web.security.csrf.CsrfCookieRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
public class CsrfCookieRequestMatcher
extends Object
implements org.springframework.security.web.util.matcher.RequestMatcher
Request Matcher checks for the existence of a cookie with the configured name
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
org.springframework.security.web.util.matcher.RequestMatcher.MatchResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(jakarta.servlet.http.HttpServletRequest httpServletRequest) Matches request based on the presence of a cookie found using the configured nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
Constructor Details
-
CsrfCookieRequestMatcher
public CsrfCookieRequestMatcher()
-
-
Method Details
-
matches
public boolean matches(jakarta.servlet.http.HttpServletRequest httpServletRequest) Matches request based on the presence of a cookie found using the configured name- Specified by:
matchesin interfaceorg.springframework.security.web.util.matcher.RequestMatcher- Parameters:
httpServletRequest- HTTP Servlet Request- Returns:
- Request matching status
-