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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forRequestMatcherDelegatingAuthenticationManagerResolver. - 
Method Summary
Modifier 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
- 
resolve
Resolve anAuthenticationManagerfrom a provided context- Specified by:
 resolvein interfaceAuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>- Returns:
 - the 
AuthenticationManagerto use 
 - 
setDefaultAuthenticationManager
Set the defaultAuthenticationManagerto use when a request does not match- Parameters:
 defaultAuthenticationManager- the defaultAuthenticationManagerto use
 - 
builder
Creates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
 - the new 
RequestMatcherDelegatingAuthorizationManager.Builderinstance 
 
 -