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) Deprecated, for removal: This API element is subject to removal in a future version.PasswordAuthenticator(String password) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(TransportProtocolClient transport, String username) Start the authenticationvoiddone(boolean success) static PasswordAuthenticatorforPassword(char[] password) static PasswordAuthenticatorforPassword(String password) 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
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated. UseforPassword(String).- Parameters:
password-
-
PasswordAuthenticator
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated. UseforPassword(char[]).- Parameters:
password-
-
-
Method Details
-
of
-
forPassword
-
forPassword
-
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:
-