Class CasGatewayResolverRequestMatcher
java.lang.Object
org.springframework.security.cas.web.CasGatewayResolverRequestMatcher
- All Implemented Interfaces:
RequestMatcher
A
RequestMatcher
implementation that delegates the check to an instance of
GatewayResolver
. The request is marked as "gatewayed" using the configured
GatewayResolver
to avoid infinite loop.- Since:
- 6.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
RequestMatcher.MatchResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(jakarta.servlet.http.HttpServletRequest request) Decides whether the rule implemented by the strategy matches the supplied request.void
setGatewayStorage
(org.apereo.cas.client.authentication.GatewayResolver gatewayStorage) Sets theGatewayResolver
to check if the request was already gatewayed.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
-
Constructor Details
-
CasGatewayResolverRequestMatcher
-
-
Method Details
-
matches
public boolean matches(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:RequestMatcher
Decides whether the rule implemented by the strategy matches the supplied request.- Specified by:
matches
in interfaceRequestMatcher
- Parameters:
request
- the request to check for a match- Returns:
- true if the request matches, false otherwise
-
setGatewayStorage
public void setGatewayStorage(org.apereo.cas.client.authentication.GatewayResolver gatewayStorage) Sets theGatewayResolver
to check if the request was already gatewayed. Defaults toDefaultGatewayResolverImpl
- Parameters:
gatewayStorage
- theGatewayResolver
to use. Cannot be null.
-