Module io.inverno.mod.security.http
Class RedirectLoginSuccessHandler<A extends Authentication,B extends ExchangeContext,C extends Exchange<B>>
java.lang.Object
io.inverno.mod.security.http.form.RedirectLoginSuccessHandler<A,B,C>
- Type Parameters:
A
- the authentication typeB
- the context typeC
- the exchange type
- All Implemented Interfaces:
LoginSuccessHandler<A,
B, C>
public class RedirectLoginSuccessHandler<A extends Authentication,B extends ExchangeContext,C extends Exchange<B>>
extends Object
implements LoginSuccessHandler<A,B,C>
A login success handler implementation that redirects the client (302) after a successful login authentication.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a redirect login success handler which redirects the client to the default login success URI.RedirectLoginSuccessHandler
(String loginSuccessUri) Creates a redirect login success handler which redirects the client to the specified login success URI. -
Method Summary
Modifier and TypeMethodDescriptionReturns the URI where the client is redirected after a successful login authentication.handleLoginSuccess
(C exchange, A authentication) Handles successful authentication.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.security.http.login.LoginSuccessHandler
andThen, compose
-
Field Details
-
DEFAULT_LOGIN_SUCCESS_URI
The default login success URI:/
.- See Also:
-
-
Constructor Details
-
RedirectLoginSuccessHandler
public RedirectLoginSuccessHandler()Creates a redirect login success handler which redirects the client to the default login success URI.
-
RedirectLoginSuccessHandler
Creates a redirect login success handler which redirects the client to the specified login success URI.
- Parameters:
loginSuccessUri
- the URI where to redirect the client after a successful login authentication
-
-
Method Details
-
getLoginSuccessUri
Returns the URI where the client is redirected after a successful login authentication.
- Returns:
- the login success URI
-
handleLoginSuccess
Description copied from interface:LoginSuccessHandler
Handles successful authentication.
- Specified by:
handleLoginSuccess
in interfaceLoginSuccessHandler<A extends Authentication,
B extends ExchangeContext, C extends Exchange<B>> - Parameters:
exchange
- the exchangeauthentication
- the authentication resulting from the authentication process- Returns:
- a mono which completes when the authentication has been handled
-