Module io.inverno.mod.security.http
Interface LoginSuccessHandler<A extends Authentication,B extends ExchangeContext,C extends Exchange<B>>
- Type Parameters:
A- the authentication typeB- the context typeC- the exchange type
- All Known Implementing Classes:
BasicSessionLoginSuccessHandler,CookieTokenLoginSuccessHandler,JWTSessionLoginSuccessHandler,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 Summary
Modifier and TypeMethodDescriptiondefault 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.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.handleLoginSuccess(C exchange, A authentication) Handles successful authentication.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.
-
Method Details
-
handleLoginSuccess
Handles successful authentication.
- Parameters:
exchange- the exchangeauthentication- the authentication resulting from the authentication process- Returns:
- a mono which completes when the authentication has been handled
-
andThen
default LoginSuccessHandler<A,B, andThenC> (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, composeC> (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, LoginSuccessHandler<A,C extends Exchange<B>> B, ofC> (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 typeB- the context typeC- 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
-