Class HostbasedAuthenticationClient
java.lang.Object
com.sshtools.j2ssh.authentication.SshAuthenticationClient
com.sshtools.j2ssh.authentication.HostbasedAuthenticationClient
- Version:
- $Revision: 1.20 $
- Author:
- $author$
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new HostbasedAuthenticationClient object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(AuthenticationProtocolClient authentication, String serviceToStart) boolean
void
reset()
void
setClientUsername
(String clientUser) void
setKey
(SshPrivateKey key) void
setPersistableProperties
(Properties properties) Methods inherited from class com.sshtools.j2ssh.authentication.SshAuthenticationClient
canPrompt, getAuthenticationPrompt, getUsername, setAuthenticationPrompt, setUsername
-
Field Details
-
key
-
-
Constructor Details
-
HostbasedAuthenticationClient
public HostbasedAuthenticationClient()Creates a new HostbasedAuthenticationClient object.
-
-
Method Details
-
setKey
- Parameters:
key
-
-
reset
public void reset()- Specified by:
reset
in classSshAuthenticationClient
-
setClientUsername
- Parameters:
clientUser
-
-
getMethodName
- Specified by:
getMethodName
in classSshAuthenticationClient
- Returns:
-
authenticate
public void authenticate(AuthenticationProtocolClient authentication, String serviceToStart) throws IOException, TerminatedStateException - Specified by:
authenticate
in classSshAuthenticationClient
- Parameters:
authentication
-serviceToStart
-- Throws:
IOException
TerminatedStateException
AuthenticationProtocolException
-
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:
-