Interface LoginFailureHandler<A extends ExchangeContext,B extends Exchange<A>>

Type Parameters:
A - the context type
B - the exchange type
All Known Implementing Classes:
RedirectLoginFailureHandler

public interface LoginFailureHandler<A extends ExchangeContext,B extends Exchange<A>>

Handles failed authentication in a LoginActionHandler.

Since:
1.5
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • handleLoginFailure

      Mono<Void> handleLoginFailure(B exchange, SecurityException error)

      Handles failed authentication.

      Parameters:
      exchange - the exchange
      error - the security error
      Returns:
      a mono which completes when the failure has been handled
    • andThen

      default LoginFailureHandler<A,B> andThen(LoginFailureHandler<? super A,? super B> after)

      Invokes this login failure handler and then invokes the specified login failure handler.

      Parameters:
      after - the handler to invoke after this handler
      Returns:
      a composed login failure handler that invokes in sequence this handler followed by the specified handler
    • compose

      default LoginFailureHandler<A,B> compose(LoginFailureHandler<? super A,? super B> before)

      Invokes the specified login failure handler and then invokes this login failure handler.

      Parameters:
      before - the handler to invoke before this handler
      Returns:
      a composed login failure handler that invokes in sequence the specified handler followed by this handler
    • of

      @SafeVarargs static <A extends ExchangeContext, B extends Exchange<A>> LoginFailureHandler<A,B> of(LoginFailureHandler<? super A,? super B>... handlers)

      Returns a composed login failure handler that invokes the specified handlers in sequence.

      Type Parameters:
      A - the context type
      B - the exchange type
      Parameters:
      handlers - the list of handlers to invoke in sequence
      Returns:
      a composed login failure handler that invokes the specified handlers in sequence