Class RequestMatcherDelegatingAuthenticationManagerResolver
java.lang.Object
org.springframework.security.web.authentication.RequestMatcherDelegatingAuthenticationManagerResolver
- All Implemented Interfaces:
- AuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthenticationManagerResolver
extends Object
implements AuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>
An 
AuthenticationManagerResolver that returns a AuthenticationManager
 instances based upon the type of HttpServletRequest passed into
 resolve(HttpServletRequest).- Since:
- 5.7
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classA builder forRequestMatcherDelegatingAuthenticationManagerResolver.
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Creates a builder forRequestMatcherDelegatingAuthorizationManager.resolve(jakarta.servlet.http.HttpServletRequest context) Resolve anAuthenticationManagerfrom a provided contextvoidsetDefaultAuthenticationManager(AuthenticationManager defaultAuthenticationManager) Set the defaultAuthenticationManagerto use when a request does not match
- 
Method Details- 
resolveResolve anAuthenticationManagerfrom a provided context- Specified by:
- resolvein interface- AuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>
- Returns:
- the AuthenticationManagerto use
 
- 
setDefaultAuthenticationManagerSet the defaultAuthenticationManagerto use when a request does not match- Parameters:
- defaultAuthenticationManager- the default- AuthenticationManagerto use
 
- 
builderCreates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
- the new RequestMatcherDelegatingAuthorizationManager.Builderinstance
 
 
-