Module io.inverno.mod.security.http
Interface LogoutSuccessHandler<A extends Authentication,B extends Identity,C extends AccessController,D extends SecurityContext<B,C>,E extends Exchange<D>>
- Type Parameters:
A
- the authentication typeB
- the identity typeC
- the access controller typeD
- the security context typeE
- the exchange type
- All Known Implementing Classes:
CookieTokenLogoutSuccessHandler
,RedirectLogoutSuccessHandler
public interface LogoutSuccessHandler<A extends Authentication,B extends Identity,C extends AccessController,D extends SecurityContext<B,C>,E extends Exchange<D>>
Handles successful logout in a LogoutActionHandler
.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionInvokes this logout success handler and then invokes the specified logout success handler.Invokes the specified logout success handler and then invokes this logout success handler.handleLogoutSuccess
(E exchange, A authentication) Handles successful logout.static <A extends Authentication,
B extends Identity, C extends AccessController, D extends SecurityContext<B, C>, E extends Exchange<D>>
LogoutSuccessHandler<A, B, C, D, E> of
(LogoutSuccessHandler<? super A, ? super B, ? super C, ? super D, ? super E>... handlers) Returns a composed logout success handler that invokes the specified handlers in sequence.
-
Method Details
-
handleLogoutSuccess
Handles successful logout.
- Parameters:
exchange
- the exchangeauthentication
- the authentication- Returns:
- a mono which completes when the logout has been handled
-
andThen
default LogoutSuccessHandler<A,B, andThenC, D, E> (LogoutSuccessHandler<? super A, ? super B, ? super C, ? super D, ? super E> after) Invokes this logout success handler and then invokes the specified logout success handler.
- Parameters:
after
- the handler to invoke after this handler- Returns:
- a composed logout success handler that invokes in sequence this handler followed by the specified handler
-
compose
default LogoutSuccessHandler<A,B, composeC, D, E> (LogoutSuccessHandler<? super A, ? super B, ? super C, ? super D, ? super E> before) Invokes the specified logout success handler and then invokes this logout success handler.
- Parameters:
before
- the handler to invoke before this handler- Returns:
- a composed logout success handler that invokes in sequence the specified handler followed by this handler
-
of
@SafeVarargs static <A extends Authentication,B extends Identity, LogoutSuccessHandler<A,C extends AccessController, D extends SecurityContext<B, C>, E extends Exchange<D>> B, ofC, D, E> (LogoutSuccessHandler<? super A, ? super B, ? super C, ? super D, ? super E>... handlers) Returns a composed logout success handler that invokes the specified handlers in sequence.
- Type Parameters:
A
- the authentication typeB
- the identity typeC
- the access controller typeD
- the security context typeE
- the exchange type- Parameters:
handlers
- the list of handlers to invoke in sequence- Returns:
- a composed logout success handler that invokes the specified handlers in sequence
-