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.
|
void |
verify()
Wait and verify that the authentication succeeded.
|
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getValue, isCanceled, isDone, removeListener, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, isCanceled
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, isDone, removeListener
public DefaultAuthFuture(Object lock)
public void verify() throws SshException
AuthFuture
verify
in interface AuthFuture
SshException
- if the authentication failed for any reasonpublic 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
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.