Class CasGatewayResolverRequestMatcher

java.lang.Object
org.springframework.security.cas.web.CasGatewayResolverRequestMatcher
All Implemented Interfaces:
RequestMatcher

public final class CasGatewayResolverRequestMatcher extends Object implements 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
  • Constructor Details

    • CasGatewayResolverRequestMatcher

      public CasGatewayResolverRequestMatcher(ServiceProperties serviceProperties)
  • 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 interface RequestMatcher
      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 the GatewayResolver to check if the request was already gatewayed. Defaults to DefaultGatewayResolverImpl
      Parameters:
      gatewayStorage - the GatewayResolver to use. Cannot be null.