Class HostbasedAuthenticationClient
- java.lang.Object
-
- com.sshtools.j2ssh.authentication.SshAuthenticationClient
-
- com.sshtools.j2ssh.authentication.HostbasedAuthenticationClient
-
public class HostbasedAuthenticationClient extends SshAuthenticationClient
- Version:
- $Revision: 1.20 $
- Author:
- $author$
-
-
Field Summary
Fields Modifier and Type Field Description protected SshPrivateKey
key
-
Constructor Summary
Constructors Constructor Description HostbasedAuthenticationClient()
Creates a new HostbasedAuthenticationClient object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
authenticate(AuthenticationProtocolClient authentication, java.lang.String serviceToStart)
boolean
canAuthenticate()
java.lang.String
getMethodName()
java.util.Properties
getPersistableProperties()
void
reset()
void
setClientUsername(java.lang.String clientUser)
void
setKey(SshPrivateKey key)
void
setPersistableProperties(java.util.Properties properties)
-
Methods inherited from class com.sshtools.j2ssh.authentication.SshAuthenticationClient
canPrompt, getAuthenticationPrompt, getUsername, setAuthenticationPrompt, setUsername
-
-
-
-
Field Detail
-
key
protected SshPrivateKey key
-
-
Method Detail
-
setKey
public void setKey(SshPrivateKey key)
- Parameters:
key
-
-
reset
public void reset()
- Specified by:
reset
in classSshAuthenticationClient
-
setClientUsername
public void setClientUsername(java.lang.String clientUser)
- Parameters:
clientUser
-
-
getMethodName
public java.lang.String getMethodName()
- Specified by:
getMethodName
in classSshAuthenticationClient
- Returns:
-
authenticate
public void authenticate(AuthenticationProtocolClient authentication, java.lang.String serviceToStart) throws java.io.IOException, TerminatedStateException
- Specified by:
authenticate
in classSshAuthenticationClient
- Parameters:
authentication
-serviceToStart
-- Throws:
java.io.IOException
TerminatedStateException
AuthenticationProtocolException
-
getPersistableProperties
public java.util.Properties getPersistableProperties()
- Specified by:
getPersistableProperties
in classSshAuthenticationClient
- Returns:
-
setPersistableProperties
public void setPersistableProperties(java.util.Properties properties)
- Specified by:
setPersistableProperties
in classSshAuthenticationClient
- Parameters:
properties
-
-
canAuthenticate
public boolean canAuthenticate()
- Specified by:
canAuthenticate
in classSshAuthenticationClient
- Returns:
-
-