public interface ClientAuthenticator extends RequestFuture
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(TransportProtocolClient transport,
java.lang.String username)
Start the authentication
|
void |
cancel() |
void |
failure()
Called by the API to indicate authentication failure.
|
java.lang.String[] |
getAuthenticationMethods() |
java.lang.String |
getName()
The authentication mechanism name/.
|
boolean |
isCancelled() |
boolean |
isMoreAuthenticationRequired() |
boolean |
processMessage(com.sshtools.common.util.ByteArrayReader msg)
Process an authentication message.
|
void |
success()
Called by the API to indicate authentication success.
|
void |
success(boolean moreAuthenticationsRequired,
java.lang.String[] authenticationMethods) |
addFutureListener, isDone, isSuccess, waitFor, waitForeverjava.lang.String getName()
void authenticate(TransportProtocolClient transport, java.lang.String username) throws java.io.IOException, SshException
transport - username - java.io.IOExceptionSshExceptionboolean processMessage(com.sshtools.common.util.ByteArrayReader msg)
throws java.io.IOException,
SshException
msg - java.io.IOExceptionSshExceptionvoid success()
void failure()
boolean isMoreAuthenticationRequired()
boolean isCancelled()
void cancel()
java.lang.String[] getAuthenticationMethods()
void success(boolean moreAuthenticationsRequired,
java.lang.String[] authenticationMethods)
Copyright © 2022. All rights reserved.