Class ServerAuthenticationEntryPointFailureHandler

java.lang.Object
org.springframework.security.web.server.authentication.ServerAuthenticationEntryPointFailureHandler
All Implemented Interfaces:
ServerAuthenticationFailureHandler

public class ServerAuthenticationEntryPointFailureHandler extends Object implements ServerAuthenticationFailureHandler
Since:
5.0
  • Constructor Details

    • ServerAuthenticationEntryPointFailureHandler

      public ServerAuthenticationEntryPointFailureHandler(ServerAuthenticationEntryPoint authenticationEntryPoint)
  • Method Details

    • onAuthenticationFailure

      public reactor.core.publisher.Mono<Void> onAuthenticationFailure(WebFilterExchange webFilterExchange, org.springframework.security.core.AuthenticationException exception)
      Description copied from interface: ServerAuthenticationFailureHandler
      Invoked when authentication attempt fails
      Specified by:
      onAuthenticationFailure in interface ServerAuthenticationFailureHandler
      Parameters:
      webFilterExchange - the exchange
      exception - the reason authentication failed
      Returns:
      a completion notification (success or error)
    • setRethrowAuthenticationServiceException

      public void setRethrowAuthenticationServiceException(boolean rethrowAuthenticationServiceException)
      Set whether to rethrow AuthenticationServiceExceptions (defaults to true)
      Parameters:
      rethrowAuthenticationServiceException - whether to rethrow AuthenticationServiceExceptions
      Since:
      5.8