public class AuthenticationProtocolClient
extends java.lang.Object
implements com.sshtools.synergy.ssh.Service
Modifier and Type | Field and Description |
---|---|
static int |
SSH_MSG_USERAUTH_BANNER |
static int |
SSH_MSG_USERAUTH_FAILURE |
static int |
SSH_MSG_USERAUTH_REQUEST |
static int |
SSH_MSG_USERAUTH_SUCCESS |
Constructor and Description |
---|
AuthenticationProtocolClient(TransportProtocolClient transport,
SshClientContext context,
java.lang.String username) |
Modifier and Type | Method and Description |
---|---|
void |
addAuthentication(ClientAuthenticator authenticator) |
void |
addAuthentication(java.util.Collection<ClientAuthenticator> auths) |
boolean |
doNextAuthentication() |
java.lang.String |
getIdleLog() |
int |
getIdleTimeoutSeconds() |
java.lang.String |
getName() |
java.util.Set<java.lang.String> |
getSupportedAuthentications() |
boolean |
idle() |
boolean |
processMessage(byte[] msg) |
void |
start() |
void |
stop() |
public static final int SSH_MSG_USERAUTH_REQUEST
public static final int SSH_MSG_USERAUTH_FAILURE
public static final int SSH_MSG_USERAUTH_SUCCESS
public static final int SSH_MSG_USERAUTH_BANNER
public AuthenticationProtocolClient(TransportProtocolClient transport, SshClientContext context, java.lang.String username)
public boolean processMessage(byte[] msg) throws java.io.IOException, com.sshtools.common.ssh.SshException
processMessage
in interface com.sshtools.synergy.ssh.Service
java.io.IOException
com.sshtools.common.ssh.SshException
public void start() throws com.sshtools.common.ssh.SshException
start
in interface com.sshtools.synergy.ssh.Service
com.sshtools.common.ssh.SshException
public boolean doNextAuthentication() throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public void stop()
stop
in interface com.sshtools.synergy.ssh.Service
public java.lang.String getName()
getName
in interface com.sshtools.synergy.ssh.Service
public int getIdleTimeoutSeconds()
getIdleTimeoutSeconds
in interface com.sshtools.synergy.ssh.Service
public boolean idle()
idle
in interface com.sshtools.synergy.ssh.Service
public void addAuthentication(java.util.Collection<ClientAuthenticator> auths) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public void addAuthentication(ClientAuthenticator authenticator) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public java.util.Set<java.lang.String> getSupportedAuthentications()
public java.lang.String getIdleLog()
getIdleLog
in interface com.sshtools.synergy.ssh.Service
Copyright © 2022. All rights reserved.