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
AuthenticationEvents.
This publisher dispatches events to AuthenticationListener and
AuthenticationErrorListener.
- Since:
- 2.2
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd aAuthenticationListener.voidaddErrorListener(AuthenticationErrorListener listener) Add aAuthenticationErrorListener.voidMulticast the given application event to appropriate listeners.voidMulticast the given application event to appropriate listeners.voidRemove aAuthenticationListener.voidRemove aAuthenticationErrorListener.
-
Constructor Details
-
AuthenticationEventPublisher
public AuthenticationEventPublisher()
-
-
Method Details
-
addAuthenticationListener
Add aAuthenticationListener. The listener starts receiving events as soon as possible.- Specified by:
addAuthenticationListenerin interfaceAuthenticationEventMulticaster- Parameters:
listener- the listener, must not be null.
-
removeAuthenticationListener
Remove aAuthenticationListener.- Specified by:
removeAuthenticationListenerin interfaceAuthenticationEventMulticaster- Parameters:
listener- the listener, must not be null.
-
addErrorListener
Add aAuthenticationErrorListener. The listener starts receiving events as soon as possible.- Specified by:
addErrorListenerin interfaceAuthenticationEventMulticaster- Parameters:
listener- the listener, must not be null.
-
removeErrorListener
Remove aAuthenticationErrorListener.- Specified by:
removeErrorListenerin interfaceAuthenticationEventMulticaster- Parameters:
listener- the listener, must not be null.
-
multicastEvent
Description copied from interface:AuthenticationEventMulticasterMulticast the given application event to appropriate listeners.- Specified by:
multicastEventin interfaceAuthenticationEventMulticaster- Parameters:
event- the event to multicast.
-
multicastEvent
Description copied from interface:AuthenticationEventMulticasterMulticast the given application event to appropriate listeners.- Specified by:
multicastEventin interfaceAuthenticationEventMulticaster- Parameters:
event- the event to multicast.
-