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 RequestMatcher
RequestMatcher.MatchResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(jakarta.servlet.http.HttpServletRequest request) Decides whether the rule implemented by the strategy matches the supplied request.voidsetGatewayStorage(org.apereo.cas.client.authentication.GatewayResolver gatewayStorage) Sets theGatewayResolverto check if the request was already gatewayed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RequestMatcher
matcher
-
Constructor Details
-
CasGatewayResolverRequestMatcher
-
-
Method Details
-
matches
public boolean matches(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:RequestMatcherDecides whether the rule implemented by the strategy matches the supplied request.- Specified by:
matchesin 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 theGatewayResolverto check if the request was already gatewayed. Defaults toDefaultGatewayResolverImpl- Parameters:
gatewayStorage- theGatewayResolverto use. Cannot be null.
-