Class DelegatingServerAuthenticationEntryPoint
- java.lang.Object
-
- org.springframework.security.web.server.DelegatingServerAuthenticationEntryPoint
-
- All Implemented Interfaces:
ServerAuthenticationEntryPoint
public class DelegatingServerAuthenticationEntryPoint extends java.lang.Object implements ServerAuthenticationEntryPoint
AServerAuthenticationEntryPoint
which delegates to multipleServerAuthenticationEntryPoint
based on aServerWebExchangeMatcher
- Since:
- 5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DelegatingServerAuthenticationEntryPoint.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 flowvoid
setDefaultEntryPoint(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:ServerAuthenticationEntryPoint
Initiates the authentication flow- Specified by:
commence
in 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
-
-