Interface AuthenticationEventMulticaster
- All Known Implementing Classes:
AuthenticationEventPublisher
,LifecycleAwareSessionManager
,LifecycleAwareSessionManagerSupport
,ReactiveLifecycleAwareSessionManager
public interface AuthenticationEventMulticaster
Interface to be implemented by objects that can manage a number of
AuthenticationEvent
and AuthenticationErrorEvent
objects and publish
events to them.
An AuthenticationEventPublisher
,
typically a lifecycle-aware
SessionManager
, can use an
AuthenticationEventMulticaster
as a delegate for actually publishing events.
- Since:
- 3.1
- Author:
- Mark Paluch
- See Also:
-
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
.
-
Method Details
-
addAuthenticationListener
Add aAuthenticationListener
.- Parameters:
listener
- the listener, must not be null.
-
removeAuthenticationListener
Remove aAuthenticationListener
.- Parameters:
listener
- the listener, must not be null.
-
addErrorListener
Add aAuthenticationErrorListener
.- Parameters:
listener
- the listener, must not be null.
-
removeErrorListener
Remove aAuthenticationErrorListener
.- Parameters:
listener
- the listener, must not be null.
-
multicastEvent
Multicast the given application event to appropriate listeners.- Parameters:
event
- the event to multicast.
-
multicastEvent
Multicast the given application event to appropriate listeners.- Parameters:
event
- the event to multicast.
-