Class DelegatingServerAuthenticationEntryPoint
- java.lang.Object
-
- org.springframework.security.web.server.DelegatingServerAuthenticationEntryPoint
-
- All Implemented Interfaces:
ServerAuthenticationEntryPoint
public class DelegatingServerAuthenticationEntryPoint extends java.lang.Object implements ServerAuthenticationEntryPoint
AServerAuthenticationEntryPointwhich delegates to multipleServerAuthenticationEntryPointbased on aServerWebExchangeMatcher- Since:
- 5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDelegatingServerAuthenticationEntryPoint.DelegateEntry
-
Constructor Summary
Constructors Constructor Description DelegatingServerAuthenticationEntryPoint(java.util.List<DelegatingServerAuthenticationEntryPoint.DelegateEntry> entryPoints)DelegatingServerAuthenticationEntryPoint(DelegatingServerAuthenticationEntryPoint.DelegateEntry... entryPoints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>commence(org.springframework.web.server.ServerWebExchange exchange, AuthenticationException ex)Initiates the authentication flowvoidsetDefaultEntryPoint(ServerAuthenticationEntryPoint defaultEntryPoint)EntryPoint which is used when no RequestMatcher returned true
-
-
-
Constructor Detail
-
DelegatingServerAuthenticationEntryPoint
public DelegatingServerAuthenticationEntryPoint(DelegatingServerAuthenticationEntryPoint.DelegateEntry... entryPoints)
-
DelegatingServerAuthenticationEntryPoint
public DelegatingServerAuthenticationEntryPoint(java.util.List<DelegatingServerAuthenticationEntryPoint.DelegateEntry> entryPoints)
-
-
Method Detail
-
commence
public reactor.core.publisher.Mono<java.lang.Void> commence(org.springframework.web.server.ServerWebExchange exchange, AuthenticationException ex)Description copied from interface:ServerAuthenticationEntryPointInitiates the authentication flow- Specified by:
commencein interfaceServerAuthenticationEntryPoint- Returns:
Mono<Void>to indicate when the request for authentication is complete
-
setDefaultEntryPoint
public void setDefaultEntryPoint(ServerAuthenticationEntryPoint defaultEntryPoint)
EntryPoint which is used when no RequestMatcher returned true
-
-