public class DefaultAuthFuture extends DefaultSshFuture<AuthFuture> implements AuthFuture
AuthFuture.| Constructor and Description |
|---|
DefaultAuthFuture(Object lock) |
| Modifier and Type | Method and Description |
|---|---|
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(Throwable exception)
Sets the exception caught due to connection failure and notifies all
threads waiting for this future.
|
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 DefaultAuthFuture(Object lock)
public 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(Throwable exception)
AuthFuturesetException in interface AuthFutureCopyright © 2008-2012 Apache Software Foundation. All Rights Reserved.