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 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

  • Method Details

    • processMessage

      public boolean processMessage(byte[] msg) throws IOException, com.sshtools.common.ssh.SshException
      Specified by:
      processMessage in interface com.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 interface com.sshtools.synergy.ssh.Service
      Throws:
      com.sshtools.common.ssh.SshException
    • doNextAuthentication

      public boolean doNextAuthentication() throws IOException, com.sshtools.common.ssh.SshException
      Throws:
      IOException
      com.sshtools.common.ssh.SshException
    • stop

      public void stop()
      Specified by:
      stop in interface com.sshtools.synergy.ssh.Service
    • getName

      public String getName()
      Specified by:
      getName in interface com.sshtools.synergy.ssh.Service
    • getIdleTimeoutSeconds

      public int getIdleTimeoutSeconds()
      Specified by:
      getIdleTimeoutSeconds in interface com.sshtools.synergy.ssh.Service
    • idle

      public boolean idle()
      Specified by:
      idle in interface com.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

      public Set<String> getSupportedAuthentications()
    • getIdleLog

      public String getIdleLog()
      Specified by:
      getIdleLog in interface com.sshtools.synergy.ssh.Service