Module io.inverno.mod.security.http
Class RedirectLogoutSuccessHandler<A extends Authentication,B extends Identity,C extends AccessController,D extends SecurityContext<B,C>,E extends Exchange<D>>
java.lang.Object
io.inverno.mod.security.http.form.RedirectLogoutSuccessHandler<A,B,C,D,E>
- Type Parameters:
A
- the authentication typeB
- the identity typeC
- the access controller typeD
- the security context typeE
- the exchange type
- All Implemented Interfaces:
LogoutSuccessHandler<A,
B, C, D, E>
public class RedirectLogoutSuccessHandler<A extends Authentication,B extends Identity,C extends AccessController,D extends SecurityContext<B,C>,E extends Exchange<D>>
extends Object
implements LogoutSuccessHandler<A,B,C,D,E>
A logout success handler implementation that redirects the client (302) after a successful logout.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a redirect logout success handler which redirects the client to the default logout success URI.RedirectLogoutSuccessHandler
(String loginSuccessUri) Creates a redirect logout success handler which redirects the client to the specified logout success URI. -
Method Summary
Modifier and TypeMethodDescriptionReturns the URI where the client is redirected after a successful logout.handleLogoutSuccess
(E exchange, A authentication) Handles successful logout.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.LogoutSuccessHandler
andThen, compose
-
Field Details
-
DEFAULT_LOGOUT_SUCCESS_URI
The default logout success URI:/
.- See Also:
-
-
Constructor Details
-
RedirectLogoutSuccessHandler
public RedirectLogoutSuccessHandler()Creates a redirect logout success handler which redirects the client to the default logout success URI.
-
RedirectLogoutSuccessHandler
Creates a redirect logout success handler which redirects the client to the specified logout success URI.
- Parameters:
loginSuccessUri
- the URI where to redirect the client after a successful logout
-
-
Method Details
-
getLogoutSuccessUri
Returns the URI where the client is redirected after a successful logout.
- Returns:
- the logout success URI
-
handleLogoutSuccess
Description copied from interface:LogoutSuccessHandler
Handles successful logout.
- Specified by:
handleLogoutSuccess
in interfaceLogoutSuccessHandler<A extends Authentication,
B extends Identity, C extends AccessController, D extends SecurityContext<B, C>, E extends Exchange<D>> - Parameters:
exchange
- the exchangeauthentication
- the authentication- Returns:
- a mono which completes when the logout has been handled
-