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
,com.sshtools.common.ssh.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 TypeMethodDescriptionvoid
authenticate
(TransportProtocolClient transport, String username) Start the authenticationvoid
done
(boolean success) getName()
The authentication mechanism name/.static PasswordAuthenticator
of
(PasswordAuthenticator.PasswordPrompt password) Methods inherited from class com.sshtools.client.SimpleClientAuthenticator
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, processMessage, success, success
Methods inherited from class com.sshtools.common.ssh.AbstractRequestFuture
addFutureListener, isDone, isSuccess, waitFor, waitForever
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
done
in classcom.sshtools.common.ssh.AbstractRequestFuture
-
authenticate
public void authenticate(TransportProtocolClient transport, String username) throws com.sshtools.common.ssh.SshException Description copied from interface:ClientAuthenticator
Start the authentication- Throws:
com.sshtools.common.ssh.SshException
-
getName
Description copied from interface:ClientAuthenticator
The authentication mechanism name/.- Returns:
-