Class DelegatingServerAuthenticationEntryPoint
java.lang.Object
org.springframework.security.web.server.DelegatingServerAuthenticationEntryPoint
- All Implemented Interfaces:
ServerAuthenticationEntryPoint
public class DelegatingServerAuthenticationEntryPoint
extends Object
implements ServerAuthenticationEntryPoint
A
ServerAuthenticationEntryPoint
which delegates to multiple
ServerAuthenticationEntryPoint
based on a ServerWebExchangeMatcher
- Since:
- 5.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionDelegatingServerAuthenticationEntryPoint
(List<DelegatingServerAuthenticationEntryPoint.DelegateEntry> entryPoints) DelegatingServerAuthenticationEntryPoint
(DelegatingServerAuthenticationEntryPoint.DelegateEntry... entryPoints) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<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 Details
-
DelegatingServerAuthenticationEntryPoint
public DelegatingServerAuthenticationEntryPoint(DelegatingServerAuthenticationEntryPoint.DelegateEntry... entryPoints) -
DelegatingServerAuthenticationEntryPoint
public DelegatingServerAuthenticationEntryPoint(List<DelegatingServerAuthenticationEntryPoint.DelegateEntry> entryPoints)
-
-
Method Details
-
commence
public reactor.core.publisher.Mono<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
EntryPoint which is used when no RequestMatcher returned true
-