public class DefaultAuthFuture extends DefaultSshFuture<AuthFuture> implements AuthFuture
AuthFuture.| Constructor and Description |
|---|
DefaultAuthFuture(java.lang.Object lock) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getException()
Returns the cause of the connection failure.
|
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(java.lang.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, cancel, getValue, isCanceled, isDone, removeListener, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, isCanceledaddListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListenerpublic void verify()
throws SshException
AuthFutureverify in interface AuthFutureSshException - if the authentication failed for any reasonpublic java.lang.Throwable getException()
AuthFuturegetException in interface AuthFuturepublic boolean isSuccess()
AuthFutureisSuccess in interface AuthFuturepublic boolean isFailure()
AuthFutureisFailure in interface AuthFuturepublic void setAuthed(boolean authed)
AuthFuturesetAuthed in interface AuthFuturepublic void setException(java.lang.Throwable exception)
AuthFuturesetException in interface AuthFutureCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.