public interface AuthFuture extends SshFuture<AuthFuture>, VerifiableFuture<AuthFuture>, Cancellable
SshFuture for asynchronous authentication requests.| Modifier and Type | Method and Description |
|---|---|
boolean |
isFailure() |
boolean |
isSuccess() |
void |
setAuthed(boolean authed)
Notifies that the session has been authenticated.
|
void |
setCancellable(boolean cancellable)
Enables or disables cancellation of this
AuthFuture. |
boolean |
wasCanceled()
Tells whether
Cancellable.cancel() was called on this AuthFuture. |
addListener, removeListenerawait, await, await, await, await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDoneverify, verify, verify, verify, verify, verify, verify, verifycancel, getCancellation, isCanceledsetExceptiongetExceptionboolean isSuccess()
true if the authentication operation is finished successfully. Note: calling this
method while the operation is in progress returns false. Should check WaitableFuture.isDone() in order
to ensure that the result is valid.boolean isFailure()
false if the authentication operation failed. Note: the operation is considered
failed if an exception is received instead of a success/fail response code or the operation is in
progress. Should check WaitableFuture.isDone() in order to ensure that the result is valid.void setAuthed(boolean authed)
authed - Authentication success statevoid setCancellable(boolean cancellable)
AuthFuture.
This is a framework method; do not call directly.
cancellable - whether this future is currently cancellableboolean wasCanceled()
Cancellable.cancel() was called on this AuthFuture.
This is different from Cancellable.isCanceled(). Canceling an on-going authentication may not be possible;
Cancellable.cancel() is only a request to cancel the authentication. That request may not be honored and
the CancelFuture may actually be
isCanceled() == false.
AuthFuture.Cancellable.isCanceled() is then false, too.
true if Cancellable.cancel() was called, false otherwiseCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.