public interface AuthFuture extends SshFuture<AuthFuture>
SshFuture for asynchronous authentication requests.| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the authentication attempt and notifies all threads waiting for
this future.
|
Throwable |
getException()
Returns the cause of the connection failure.
|
boolean |
isCanceled() |
boolean |
isFailure() |
boolean |
isSuccess() |
void |
setAuthed(boolean authed)
Notifies that the session has been authenticated.
|
void |
setException(Throwable exception)
Sets the exception caught due to connection failure and notifies all
threads waiting for this future.
|
void |
verify()
Wait and verify that the authentication succeeded.
|
void |
verify(long timeoutMillis)
Wait and verify that the authentication succeeded within the specified timeout.
|
void |
verify(long timeout,
TimeUnit unit)
Wait and verify that the authentication succeeded within the specified timeout.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListenervoid verify()
throws IOException
IOException - if the authentication failed for any reasonvoid verify(long timeout,
TimeUnit unit)
throws IOException
timeout - The number of time unitsunit - The TimeUnit for the timeoutIOException - if the authentication failed for any reasonvoid verify(long timeoutMillis)
throws IOException
timeoutMillis - Timeout in millisecondsIOException - if the authentication failed for any reasonThrowable getException()
null if the connect operation is not finished yet,
or if the connection attempt is successful.boolean isSuccess()
true if the authentication operation is finished successfully.boolean isFailure()
false if the authentication operation failed.boolean isCanceled()
true if the connect operation has been canceled by
cancel() method.void setAuthed(boolean authed)
authed - Authentication success statevoid setException(Throwable exception)
exception - The caught Throwablevoid cancel()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.