Class LockOutEventDispatcher
java.lang.Object
org.jivesoftware.openfire.lockout.LockOutEventDispatcher
Dispatches lockout events. The following events are supported:
- accountLocked --> An account has been disabled/locked out.
- accountUnlocked --> An account has been enabled/unlocked.
- lockedAccountDenied --> A locked out account has been denied login.
addListener(LockOutEventListener) and removeListener(LockOutEventListener)
to add or remove LockOutEventListener.- Author:
- Daniel Henninger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccountLocked(LockOutFlag flag) Notifies the listeners that an account was just set to be disabled/locked out.static voidaccountUnlocked(String username) Notifies the listeners that an account was just enabled (lockout removed).static voidaddListener(LockOutEventListener listener) Registers a listener to receive events.static voidlockedAccountDenied(String username) Notifies the listeners that a locked out account attempted to log in.static voidremoveListener(LockOutEventListener listener) Unregisters a listener to receive events.
-
Constructor Details
-
LockOutEventDispatcher
public LockOutEventDispatcher()
-
-
Method Details
-
addListener
Registers a listener to receive events.- Parameters:
listener- the listener.
-
removeListener
Unregisters a listener to receive events.- Parameters:
listener- the listener.
-
accountLocked
Notifies the listeners that an account was just set to be disabled/locked out.- Parameters:
flag- The LockOutFlag that was set, which includes the username of the account and start/end times.
-
accountUnlocked
Notifies the listeners that an account was just enabled (lockout removed).- Parameters:
username- The username of the account that was enabled.
-
lockedAccountDenied
Notifies the listeners that a locked out account attempted to log in.- Parameters:
username- The username of the account that tried to log in.
-