Class AuthenticationTask
- All Implemented Interfaces:
Runnable,Future<Boolean>,RunnableFuture<Boolean>
This concurrent task attempts to authenticate against one or more
authentication sources, completing when one is successful or all are
exhausted.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationTask(List<IAuthenticationSource> authenticators, String usernmame, String password) Constructor -
Method Summary
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
-
Constructor Details
-
AuthenticationTask
public AuthenticationTask(List<IAuthenticationSource> authenticators, String usernmame, String password) Constructor- Parameters:
authenticators- A list of authentication sources to try.usernmame- The username to be used in authentication.password- The password to be used in authentication.
-
-
Method Details
-
doInBackground
- Specified by:
doInBackgroundin classSwingWorker<Boolean,Void> - Throws:
Exception- See Also:
-
done
public void done()Executed in event dispatching thread.- Overrides:
donein classSwingWorker<Boolean,Void>
-