|
||||||||||
| 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(java.lang.Object lock)
|
|
| Method Summary | |
|---|---|
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. |
| 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(java.lang.Object lock)
| Method Detail |
|---|
public java.lang.Throwable getException()
AuthFuture
getException in interface AuthFuturepublic boolean isSuccess()
AuthFuture
isSuccess in interface AuthFuturepublic boolean isFailure()
AuthFuture
isFailure in interface AuthFuturepublic void setAuthed(boolean authed)
AuthFuture
setAuthed in interface AuthFuturepublic void setException(java.lang.Throwable exception)
AuthFuture
setException in interface AuthFuture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||