Interface LoginSuccessHandler<A extends Authentication,B extends ExchangeContext,C extends Exchange<B>>

Type Parameters:
A - the authentication type
B - the context type
C - the exchange type
All Known Implementing Classes:
CookieTokenLoginSuccessHandler, RedirectLoginSuccessHandler
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LoginSuccessHandler<A extends Authentication,B extends ExchangeContext,C extends Exchange<B>>

Handles successful authentication in a LoginActionHandler.

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

    • handleLoginSuccess

      Mono<Void> handleLoginSuccess(C exchange, A authentication)

      Handles successful authentication.

      Parameters:
      exchange - the exchange
      authentication - the authentication resulting from the authentication process
      Returns:
      a mono which completes when the authentication has been handled
    • andThen

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

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

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

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

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

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

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

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

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