Class RequestMatcherDelegatingAuthenticationManagerResolver
java.lang.Object
org.springframework.security.web.authentication.RequestMatcherDelegatingAuthenticationManagerResolver
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthenticationManagerResolver
extends Object
implements org.springframework.security.authentication.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.org.springframework.security.authentication.AuthenticationManagerresolve(jakarta.servlet.http.HttpServletRequest context) voidsetDefaultAuthenticationManager(org.springframework.security.authentication.AuthenticationManager defaultAuthenticationManager) Set the defaultAuthenticationManagerto use when a request does not match
-
Method Details
-
resolve
public org.springframework.security.authentication.AuthenticationManager resolve(jakarta.servlet.http.HttpServletRequest context) - Specified by:
resolvein interfaceorg.springframework.security.authentication.AuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>
-
setDefaultAuthenticationManager
public void setDefaultAuthenticationManager(org.springframework.security.authentication.AuthenticationManager defaultAuthenticationManager) 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
-