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
Modifier and TypeClassDescriptionstatic final class
A builder forRequestMatcherDelegatingAuthenticationManagerResolver
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.resolve
(jakarta.servlet.http.HttpServletRequest context) Resolve anAuthenticationManager
from a provided contextvoid
setDefaultAuthenticationManager
(AuthenticationManager defaultAuthenticationManager) Set the defaultAuthenticationManager
to use when a request does not match
-
Method Details
-
resolve
Resolve anAuthenticationManager
from a provided context- Specified by:
resolve
in interfaceAuthenticationManagerResolver<jakarta.servlet.http.HttpServletRequest>
- Returns:
- the
AuthenticationManager
to use
-
setDefaultAuthenticationManager
Set the defaultAuthenticationManager
to use when a request does not match- Parameters:
defaultAuthenticationManager
- the defaultAuthenticationManager
to use
-
builder
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builder
instance
-