Class AuthenticationEventPublisher
java.lang.Object
org.springframework.vault.authentication.AuthenticationEventPublisher
- All Implemented Interfaces:
AuthenticationEventMulticaster
- Direct Known Subclasses:
LifecycleAwareSessionManagerSupport
public abstract class AuthenticationEventPublisher
extends Object
implements AuthenticationEventMulticaster
Publisher for
AuthenticationEvent
s.
This publisher dispatches events to AuthenticationListener
and
AuthenticationErrorListener
.
- Since:
- 2.2
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add aAuthenticationListener
.void
addErrorListener
(AuthenticationErrorListener listener) Add aAuthenticationErrorListener
.void
Multicast the given application event to appropriate listeners.void
Multicast the given application event to appropriate listeners.void
Remove aAuthenticationListener
.void
Remove aAuthenticationErrorListener
.
-
Constructor Details
-
AuthenticationEventPublisher
public AuthenticationEventPublisher()
-
-
Method Details
-
addAuthenticationListener
Add aAuthenticationListener
. The listener starts receiving events as soon as possible.- Specified by:
addAuthenticationListener
in interfaceAuthenticationEventMulticaster
- Parameters:
listener
- the listener, must not be null.
-
removeAuthenticationListener
Remove aAuthenticationListener
.- Specified by:
removeAuthenticationListener
in interfaceAuthenticationEventMulticaster
- Parameters:
listener
- the listener, must not be null.
-
addErrorListener
Add aAuthenticationErrorListener
. The listener starts receiving events as soon as possible.- Specified by:
addErrorListener
in interfaceAuthenticationEventMulticaster
- Parameters:
listener
- the listener, must not be null.
-
removeErrorListener
Remove aAuthenticationErrorListener
.- Specified by:
removeErrorListener
in interfaceAuthenticationEventMulticaster
- Parameters:
listener
- the listener, must not be null.
-
multicastEvent
Description copied from interface:AuthenticationEventMulticaster
Multicast the given application event to appropriate listeners.- Specified by:
multicastEvent
in interfaceAuthenticationEventMulticaster
- Parameters:
event
- the event to multicast.
-
multicastEvent
Description copied from interface:AuthenticationEventMulticaster
Multicast the given application event to appropriate listeners.- Specified by:
multicastEvent
in interfaceAuthenticationEventMulticaster
- Parameters:
event
- the event to multicast.
-