Class PasswordAuthenticationClient
java.lang.Object
com.sshtools.j2ssh.authentication.SshAuthenticationClient
com.sshtools.j2ssh.authentication.PasswordAuthenticationClient
- Version:
- $Revision: 1.22 $
- Author:
- $author$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(AuthenticationProtocolClient authentication, String serviceToStart) booleanfinal Stringvoidreset()final voidsetPassword(String password) voidsetPasswordChangePrompt(PasswordChangePrompt changePrompt) voidsetPersistableProperties(Properties properties) Methods inherited from class com.sshtools.j2ssh.authentication.SshAuthenticationClient
canPrompt, getAuthenticationPrompt, getUsername, setAuthenticationPrompt, setUsername
-
Field Details
-
password
-
-
Constructor Details
-
PasswordAuthenticationClient
public PasswordAuthenticationClient()
-
-
Method Details
-
getMethodName
- Specified by:
getMethodNamein classSshAuthenticationClient- Returns:
-
setPassword
- Parameters:
password-
-
reset
public void reset()- Specified by:
resetin classSshAuthenticationClient
-
setPasswordChangePrompt
- Parameters:
changePrompt-
-
authenticate
public void authenticate(AuthenticationProtocolClient authentication, String serviceToStart) throws IOException, TerminatedStateException - Specified by:
authenticatein classSshAuthenticationClient- Parameters:
authentication-serviceToStart-- Throws:
IOExceptionTerminatedStateException
-
getPersistableProperties
- Specified by:
getPersistablePropertiesin classSshAuthenticationClient- Returns:
-
setPersistableProperties
- Specified by:
setPersistablePropertiesin classSshAuthenticationClient- Parameters:
properties-
-
canAuthenticate
public boolean canAuthenticate()- Specified by:
canAuthenticatein classSshAuthenticationClient- Returns:
-