Package com.sshtools.client
Class AuthenticationProtocolClient
java.lang.Object
com.sshtools.client.AuthenticationProtocolClient
- All Implemented Interfaces:
com.sshtools.synergy.ssh.Service
public class AuthenticationProtocolClient
extends Object
implements com.sshtools.synergy.ssh.Service
Implements the client side of the SSH authentication protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationProtocolClient
(TransportProtocolClient transport, SshClientContext context, String username) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuthentication
(ClientAuthenticator authenticator) void
boolean
int
getName()
boolean
idle()
boolean
processMessage
(byte[] msg) void
start()
void
stop()
-
Field Details
-
SSH_MSG_USERAUTH_REQUEST
public static final int SSH_MSG_USERAUTH_REQUEST- See Also:
-
SSH_MSG_USERAUTH_FAILURE
public static final int SSH_MSG_USERAUTH_FAILURE- See Also:
-
SSH_MSG_USERAUTH_SUCCESS
public static final int SSH_MSG_USERAUTH_SUCCESS- See Also:
-
SSH_MSG_USERAUTH_BANNER
public static final int SSH_MSG_USERAUTH_BANNER- See Also:
-
-
Constructor Details
-
AuthenticationProtocolClient
public AuthenticationProtocolClient(TransportProtocolClient transport, SshClientContext context, String username)
-
-
Method Details
-
processMessage
- Specified by:
processMessage
in interfacecom.sshtools.synergy.ssh.Service
- Throws:
IOException
com.sshtools.common.ssh.SshException
-
start
public void start() throws com.sshtools.common.ssh.SshException- Specified by:
start
in interfacecom.sshtools.synergy.ssh.Service
- Throws:
com.sshtools.common.ssh.SshException
-
doNextAuthentication
- Throws:
IOException
com.sshtools.common.ssh.SshException
-
stop
public void stop()- Specified by:
stop
in interfacecom.sshtools.synergy.ssh.Service
-
getName
- Specified by:
getName
in interfacecom.sshtools.synergy.ssh.Service
-
getIdleTimeoutSeconds
public int getIdleTimeoutSeconds()- Specified by:
getIdleTimeoutSeconds
in interfacecom.sshtools.synergy.ssh.Service
-
idle
public boolean idle()- Specified by:
idle
in interfacecom.sshtools.synergy.ssh.Service
-
addAuthentication
public void addAuthentication(Collection<ClientAuthenticator> auths) throws IOException, com.sshtools.common.ssh.SshException - Throws:
IOException
com.sshtools.common.ssh.SshException
-
addAuthentication
public void addAuthentication(ClientAuthenticator authenticator) throws IOException, com.sshtools.common.ssh.SshException - Throws:
IOException
com.sshtools.common.ssh.SshException
-
getSupportedAuthentications
-
getIdleLog
- Specified by:
getIdleLog
in interfacecom.sshtools.synergy.ssh.Service
-