Class RequestMatcherDelegatingAuthenticationManagerResolver

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>

    public final class RequestMatcherDelegatingAuthenticationManagerResolver
    extends java.lang.Object
    implements org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
    An AuthenticationManagerResolver that returns a AuthenticationManager instances based upon the type of HttpServletRequest passed into resolve(HttpServletRequest).
    Since:
    5.7
    • Method Detail

      • resolve

        public org.springframework.security.authentication.AuthenticationManager resolve​(javax.servlet.http.HttpServletRequest context)
        Specified by:
        resolve in interface org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
      • setDefaultAuthenticationManager

        public void setDefaultAuthenticationManager​(org.springframework.security.authentication.AuthenticationManager defaultAuthenticationManager)
        Set the default AuthenticationManager to use when a request does not match
        Parameters:
        defaultAuthenticationManager - the default AuthenticationManager to use