Module io.inverno.mod.security.http
Class RedirectLoginFailureHandler<A extends ExchangeContext,B extends Exchange<A>>
java.lang.Object
io.inverno.mod.security.http.form.RedirectLoginFailureHandler<A,B>
- Type Parameters:
A
- the context typeB
- the exchange type
- All Implemented Interfaces:
LoginFailureHandler<A,
B>
public class RedirectLoginFailureHandler<A extends ExchangeContext,B extends Exchange<A>>
extends Object
implements LoginFailureHandler<A,B>
A login failure handler implementation that redirects the client (302) after a failed login authentication.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a redirect login failure handler which redirects the client to the default login failure URI.RedirectLoginFailureHandler
(String loginFailureUri) Creates a redirect login failure handler which redirects the client to the specified login failure URI. -
Method Summary
Modifier and TypeMethodDescriptionReturns the URI where the client is redirected after a failed login authentication.handleLoginFailure
(B exchange, SecurityException error) Handles failed 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.LoginFailureHandler
andThen, compose
-
Field Details
-
DEFAULT_LOGIN_FAILURE_URI
The default login failure URI:/login
.- See Also:
-
-
Constructor Details
-
RedirectLoginFailureHandler
public RedirectLoginFailureHandler()Creates a redirect login failure handler which redirects the client to the default login failure URI.
-
RedirectLoginFailureHandler
Creates a redirect login failure handler which redirects the client to the specified login failure URI.
- Parameters:
loginFailureUri
- the URI where to redirect the client after a failed login authentication
-
-
Method Details
-
getLoginFailureUri
Returns the URI where the client is redirected after a failed login authentication.
- Returns:
- the login failure URI
-
handleLoginFailure
Description copied from interface:LoginFailureHandler
Handles failed authentication.
- Specified by:
handleLoginFailure
in interfaceLoginFailureHandler<A extends ExchangeContext,
B extends Exchange<A>> - Parameters:
exchange
- the exchangeerror
- the security error- Returns:
- a mono which completes when the failure has been handled
-