Package com.sshtools.client
Class PasswordAuthenticator
java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.client.SimpleClientAuthenticator
com.sshtools.client.PasswordAuthenticator
- All Implemented Interfaces:
ClientAuthenticator,RequestFuture
Implements the password authentication method.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPasswordAuthenticator(char[] password) PasswordAuthenticator(String password) PasswordAuthenticator(Supplier<String> supplier) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(TransportProtocolClient transport, String username) Start the authenticationvoiddone(boolean success) getName()The authentication mechanism name/.static PasswordAuthenticatorof(PasswordAuthenticator.PasswordPrompt password) Methods inherited from class com.sshtools.client.SimpleClientAuthenticator
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, processMessage, success, successMethods inherited from class com.sshtools.common.ssh.AbstractRequestFuture
addFutureListener, isDone, isSuccess, waitFor, waitForeverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sshtools.common.ssh.RequestFuture
addFutureListener, isDone, isDoneAndSuccess, isSuccess, waitFor, waitForever
-
Constructor Details
-
PasswordAuthenticator
public PasswordAuthenticator() -
PasswordAuthenticator
Deprecated. -
PasswordAuthenticator
-
PasswordAuthenticator
public PasswordAuthenticator(char[] password)
-
-
Method Details
-
of
-
getPassword
-
done
public void done(boolean success) - Overrides:
donein classAbstractRequestFuture
-
authenticate
Description copied from interface:ClientAuthenticatorStart the authentication- Throws:
SshException
-
getName
Description copied from interface:ClientAuthenticatorThe authentication mechanism name/.- Returns:
-