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 TypeMethodDescriptionvoid
authenticate
(AuthenticationProtocolClient authentication, String serviceToStart) boolean
final String
void
reset()
final void
setPassword
(String password) void
setPasswordChangePrompt
(PasswordChangePrompt changePrompt) void
setPersistableProperties
(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:
getMethodName
in classSshAuthenticationClient
- Returns:
-
setPassword
- Parameters:
password
-
-
reset
public void reset()- Specified by:
reset
in classSshAuthenticationClient
-
setPasswordChangePrompt
- Parameters:
changePrompt
-
-
authenticate
public void authenticate(AuthenticationProtocolClient authentication, String serviceToStart) throws IOException, TerminatedStateException - Specified by:
authenticate
in classSshAuthenticationClient
- Parameters:
authentication
-serviceToStart
-- Throws:
IOException
TerminatedStateException
-
getPersistableProperties
- Specified by:
getPersistableProperties
in classSshAuthenticationClient
- Returns:
-
setPersistableProperties
- Specified by:
setPersistableProperties
in classSshAuthenticationClient
- Parameters:
properties
-
-
canAuthenticate
public boolean canAuthenticate()- Specified by:
canAuthenticate
in classSshAuthenticationClient
- Returns:
-