Class AuthenticationEventPublisher
java.lang.Object
org.springframework.vault.authentication.AuthenticationEventPublisher
- Direct Known Subclasses:
LifecycleAwareSessionManagerSupport
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
Remove aAuthenticationListener
.void
Remove aAuthenticationErrorListener
.
-
Constructor Details
-
AuthenticationEventPublisher
public AuthenticationEventPublisher()
-
-
Method Details
-
addAuthenticationListener
Add aAuthenticationListener
. The listener starts receiving events as soon as possible.- Parameters:
listener
- lease listener, must not be null.
-
removeAuthenticationListener
Remove aAuthenticationListener
.- Parameters:
listener
- must not be null.
-
addErrorListener
Add aAuthenticationErrorListener
. The listener starts receiving events as soon as possible.- Parameters:
listener
- lease listener, must not be null.
-
removeErrorListener
Remove aAuthenticationErrorListener
.- Parameters:
listener
- must not be null.
-