Module io.inverno.mod.security.http
Interface LoginFailureHandler<A extends ExchangeContext,B extends Exchange<A>>
- Type Parameters:
A
- the context typeB
- 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 Summary
Modifier and TypeMethodDescriptiondefault LoginFailureHandler
<A, B> andThen
(LoginFailureHandler<? super A, ? super B> after) Invokes this login failure handler and then invokes the specified login failure handler.default LoginFailureHandler
<A, B> compose
(LoginFailureHandler<? super A, ? super B> before) Invokes the specified login failure handler and then invokes this login failure handler.handleLoginFailure
(B exchange, SecurityException error) Handles failed authentication.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.
-
Method Details
-
handleLoginFailure
Handles failed authentication.
- Parameters:
exchange
- the exchangeerror
- the security error- Returns:
- a mono which completes when the failure has been handled
-
andThen
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
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 typeB
- 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
-