Class ServerAuthenticationEntryPointFailureHandler
java.lang.Object
org.springframework.security.web.server.authentication.ServerAuthenticationEntryPointFailureHandler
- All Implemented Interfaces:
ServerAuthenticationFailureHandler
public class ServerAuthenticationEntryPointFailureHandler
extends Object
implements ServerAuthenticationFailureHandler
Adapts a
ServerAuthenticationEntryPoint
into a
ServerAuthenticationFailureHandler
- Since:
- 5.0
-
Constructor Summary
ConstructorDescriptionServerAuthenticationEntryPointFailureHandler
(ServerAuthenticationEntryPoint authenticationEntryPoint) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
onAuthenticationFailure
(WebFilterExchange webFilterExchange, AuthenticationException exception) Invoked when authentication attempt fails
-
Constructor Details
-
ServerAuthenticationEntryPointFailureHandler
public ServerAuthenticationEntryPointFailureHandler(ServerAuthenticationEntryPoint authenticationEntryPoint)
-
-
Method Details
-
onAuthenticationFailure
public reactor.core.publisher.Mono<Void> onAuthenticationFailure(WebFilterExchange webFilterExchange, AuthenticationException exception) Description copied from interface:ServerAuthenticationFailureHandler
Invoked when authentication attempt fails- Specified by:
onAuthenticationFailure
in interfaceServerAuthenticationFailureHandler
- Parameters:
webFilterExchange
- the exchangeexception
- the reason authentication failed- Returns:
- a completion notification (success or error)
-