Class LoginActionHandler<A extends LoginCredentials,B extends Authentication,C extends ExchangeContext,D extends Exchange<C>>

java.lang.Object
io.inverno.mod.security.http.login.LoginActionHandler<A,B,C,D>
Type Parameters:
A - the login credentials type
B - the authentication type
C - the context type
D - the exchange type
All Implemented Interfaces:
ExchangeHandler<C,D>, ReactiveExchangeHandler<C,D>

public class LoginActionHandler<A extends LoginCredentials,B extends Authentication,C extends ExchangeContext,D extends Exchange<C>> extends Object implements ExchangeHandler<C,D>

An exchange handler that authenticates login credentials and delegates further processing to success and failure handlers.

A login action handler is typically used in a form login authentication to authenticate the credentials sent by a user in a POST request.

It relies on a CredentialsExtractor to extract login credentials from the request, an Authenticator to authenticate them, a LoginSuccessHandler and a LoginFailureHandler to respectively handle successful authentications and failed authentications.

Since:
1.5
Author:
Jeremy Kuhn