Class ServerAuthenticationEntryPointFailureHandler
- java.lang.Object
-
- org.springframework.security.web.server.authentication.ServerAuthenticationEntryPointFailureHandler
-
- All Implemented Interfaces:
ServerAuthenticationFailureHandler
public class ServerAuthenticationEntryPointFailureHandler extends java.lang.Object implements ServerAuthenticationFailureHandler
Adapts aServerAuthenticationEntryPoint
into aServerAuthenticationFailureHandler
- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description ServerAuthenticationEntryPointFailureHandler(ServerAuthenticationEntryPoint authenticationEntryPoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
onAuthenticationFailure(WebFilterExchange webFilterExchange, AuthenticationException exception)
Invoked when authentication attempt fails
-
-
-
Constructor Detail
-
ServerAuthenticationEntryPointFailureHandler
public ServerAuthenticationEntryPointFailureHandler(ServerAuthenticationEntryPoint authenticationEntryPoint)
-
-
Method Detail
-
onAuthenticationFailure
public reactor.core.publisher.Mono<java.lang.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)
-
-