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()
Returns
true if the connect operation has been canceled by
cancel() method. |
boolean |
isFailure()
Returns false if the authentication operation failed.
|
boolean |
isSuccess()
Returns true if the authentication operation is finished successfully.
|
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.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListener
void verify() throws SshException
SshException
- if the authentication failed for any reasonThrowable getException()
boolean isSuccess()
boolean isFailure()
boolean isCanceled()
true
if the connect operation has been canceled by
cancel()
method.void setAuthed(boolean authed)
void setException(Throwable exception)
void cancel()
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.