Class HttpHeaderInspectingApiRequestMatcher
java.lang.Object
org.keycloak.adapters.springsecurity.authentication.HttpHeaderInspectingApiRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
public class HttpHeaderInspectingApiRequestMatcher
extends Object
implements org.springframework.security.web.util.matcher.RequestMatcher
RequestMatcher
that determines if a given request is an API request or an
interactive login request.- Author:
- Scott Rossillo
- See Also:
-
RequestMatcher
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
org.springframework.security.web.util.matcher.RequestMatcher.MatchResult
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(javax.servlet.http.HttpServletRequest request) Returns true if the given request is an API request or false if it's an interactive login request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
Field Details
-
X_REQUESTED_WITH_HEADER
- See Also:
-
X_REQUESTED_WITH_HEADER_AJAX_VALUE
- See Also:
-
-
Constructor Details
-
HttpHeaderInspectingApiRequestMatcher
public HttpHeaderInspectingApiRequestMatcher()
-
-
Method Details
-
matches
public boolean matches(javax.servlet.http.HttpServletRequest request) Returns true if the given request is an API request or false if it's an interactive login request.- Specified by:
matches
in interfaceorg.springframework.security.web.util.matcher.RequestMatcher
- Parameters:
request
- theHttpServletRequest
- Returns:
true
if the givenrequest
is an API request;false
otherwise
-