Module io.inverno.mod.security.http
Class CookieTokenLogoutSuccessHandler<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.token.CookieTokenLogoutSuccessHandler<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 CookieTokenLogoutSuccessHandler<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 that removes the token cookie.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorDescriptionCreates a cookie token logout success handler with default path and token cookie name.Creates a cookie token logout success handler with the specified path and the default token cookie name.CookieTokenLogoutSuccessHandler
(String path, String tokenCookie) Creates a cookie token logout success handler with specified path and token cookie name. -
Method Summary
Modifier and TypeMethodDescriptiongetPath()
Returns the token cookie path.Returns the token cookie name.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
-
Constructor Details
-
CookieTokenLogoutSuccessHandler
public CookieTokenLogoutSuccessHandler()Creates a cookie token logout success handler with default path and token cookie name.
-
CookieTokenLogoutSuccessHandler
Creates a cookie token logout success handler with the specified path and the default token cookie name.
- Parameters:
path
- the token cookie path
-
CookieTokenLogoutSuccessHandler
Creates a cookie token logout success handler with specified path and token cookie name.
- Parameters:
path
- the token cookie pathtokenCookie
- the token cookie name
-
-
Method Details
-
getPath
Returns the token cookie path.
- Returns:
- the token cookie path
-
getTokenCookie
Returns the token cookie name.
- Returns:
- the token cookie name
-
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
-