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 TypeMethodDescriptionvoidauthenticate(AuthenticationProtocolClient authentication, String serviceToStart) booleanvoidreset()voidsetClientUsername(String clientUser) voidsetKey(SshPrivateKey key) voidsetPersistableProperties(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:
resetin classSshAuthenticationClient
-
setClientUsername
- Parameters:
clientUser-
-
getMethodName
- Specified by:
getMethodNamein classSshAuthenticationClient- Returns:
-
authenticate
public void authenticate(AuthenticationProtocolClient authentication, String serviceToStart) throws IOException, TerminatedStateException - Specified by:
authenticatein classSshAuthenticationClient- Parameters:
authentication-serviceToStart-- Throws:
IOExceptionTerminatedStateExceptionAuthenticationProtocolException
-
getPersistableProperties
- Specified by:
getPersistablePropertiesin classSshAuthenticationClient- Returns:
-
setPersistableProperties
- Specified by:
setPersistablePropertiesin classSshAuthenticationClient- Parameters:
properties-
-
canAuthenticate
public boolean canAuthenticate()- Specified by:
canAuthenticatein classSshAuthenticationClient- Returns:
-