|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sshd.common.future.DefaultSshFuture<AuthFuture>
org.apache.sshd.client.future.DefaultAuthFuture
public class DefaultAuthFuture
A default implementation of AuthFuture
.
Constructor Summary | |
---|---|
DefaultAuthFuture(Object lock)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.sshd.common.future.DefaultSshFuture |
---|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getValue, isCanceled, isDone, removeListener, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.sshd.client.future.AuthFuture |
---|
cancel, isCanceled |
Methods inherited from interface org.apache.sshd.common.future.SshFuture |
---|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListener |
Constructor Detail |
---|
public DefaultAuthFuture(Object lock)
Method Detail |
---|
public Throwable getException()
AuthFuture
getException
in interface AuthFuture
public boolean isSuccess()
AuthFuture
isSuccess
in interface AuthFuture
public boolean isFailure()
AuthFuture
isFailure
in interface AuthFuture
public void setAuthed(boolean authed)
AuthFuture
setAuthed
in interface AuthFuture
public void setException(Throwable exception)
AuthFuture
setException
in interface AuthFuture
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |