Class RequestMatcherDelegatingAuthenticationManagerResolver
- java.lang.Object
-
- org.springframework.security.web.authentication.RequestMatcherDelegatingAuthenticationManagerResolver
-
- All Implemented Interfaces:
AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthenticationManagerResolver extends java.lang.Object implements AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
AnAuthenticationManagerResolver
that returns aAuthenticationManager
instances based upon the type ofHttpServletRequest
passed intoresolve(HttpServletRequest)
.- Since:
- 5.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestMatcherDelegatingAuthenticationManagerResolver.Builder
A builder forRequestMatcherDelegatingAuthenticationManagerResolver
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestMatcherDelegatingAuthenticationManagerResolver.Builder
builder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.AuthenticationManager
resolve(javax.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 Detail
-
resolve
public AuthenticationManager resolve(javax.servlet.http.HttpServletRequest context)
Resolve anAuthenticationManager
from a provided context- Specified by:
resolve
in interfaceAuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
- Returns:
- the
AuthenticationManager
to use
-
setDefaultAuthenticationManager
public void setDefaultAuthenticationManager(AuthenticationManager defaultAuthenticationManager)
Set the defaultAuthenticationManager
to use when a request does not match- Parameters:
defaultAuthenticationManager
- the defaultAuthenticationManager
to use
-
builder
public static RequestMatcherDelegatingAuthenticationManagerResolver.Builder builder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builder
instance
-
-