Class RequestMatcherDelegatingAuthenticationManagerResolver
- java.lang.Object
-
- org.springframework.security.web.authentication.RequestMatcherDelegatingAuthenticationManagerResolver
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>
public final class RequestMatcherDelegatingAuthenticationManagerResolver extends java.lang.Object implements org.springframework.security.authentication.AuthenticationManagerResolver<javax.servlet.http.HttpServletRequest>AnAuthenticationManagerResolverthat returns aAuthenticationManagerinstances based upon the type ofHttpServletRequestpassed intoresolve(HttpServletRequest).- Since:
- 5.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestMatcherDelegatingAuthenticationManagerResolver.BuilderA builder forRequestMatcherDelegatingAuthenticationManagerResolver.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequestMatcherDelegatingAuthenticationManagerResolver.Builderbuilder()Creates a builder forRequestMatcherDelegatingAuthorizationManager.org.springframework.security.authentication.AuthenticationManagerresolve(javax.servlet.http.HttpServletRequest context)voidsetDefaultAuthenticationManager(org.springframework.security.authentication.AuthenticationManager defaultAuthenticationManager)Set the defaultAuthenticationManagerto use when a request does not match
-
-
-
Method Detail
-
resolve
public org.springframework.security.authentication.AuthenticationManager resolve(javax.servlet.http.HttpServletRequest context)
- Specified by:
resolvein interfaceorg.springframework.security.authentication.AuthenticationManagerResolver<javax.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
public static RequestMatcherDelegatingAuthenticationManagerResolver.Builder builder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builderinstance
-
-