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 SummaryConstructorsConstructorDescriptionServerAuthenticationEntryPointFailureHandler(ServerAuthenticationEntryPoint authenticationEntryPoint) 
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>onAuthenticationFailure(WebFilterExchange webFilterExchange, AuthenticationException exception) Invoked when authentication attempt failsvoidsetRethrowAuthenticationServiceException(boolean rethrowAuthenticationServiceException) Set whether to rethrowAuthenticationServiceExceptions (defaults to true)
- 
Constructor Details- 
ServerAuthenticationEntryPointFailureHandlerpublic ServerAuthenticationEntryPointFailureHandler(ServerAuthenticationEntryPoint authenticationEntryPoint) 
 
- 
- 
Method Details- 
onAuthenticationFailurepublic reactor.core.publisher.Mono<Void> onAuthenticationFailure(WebFilterExchange webFilterExchange, AuthenticationException exception) Description copied from interface:ServerAuthenticationFailureHandlerInvoked when authentication attempt fails- Specified by:
- onAuthenticationFailurein interface- ServerAuthenticationFailureHandler
- Parameters:
- webFilterExchange- the exchange
- exception- the reason authentication failed
- Returns:
- a completion notification (success or error)
 
- 
setRethrowAuthenticationServiceExceptionpublic void setRethrowAuthenticationServiceException(boolean rethrowAuthenticationServiceException) Set whether to rethrowAuthenticationServiceExceptions (defaults to true)- Parameters:
- rethrowAuthenticationServiceException- whether to rethrow- AuthenticationServiceExceptions
- Since:
- 5.8
 
 
-