Class SshSession

java.lang.Object
com.google.gerrit.sshd.SshSession

public class SshSession extends Object
Global data related to an active SSH connection.
  • Field Details

    • KEY

      public static final org.apache.sshd.common.AttributeRepository.AttributeKey<SshSession> KEY
      ServerSession attribute key for this object instance.
  • Method Details

    • getSessionId

      public int getSessionId()
      Unique session number, assigned during connect.
    • requiresGracefulStop

      public boolean requiresGracefulStop()
    • setGracefulStop

      public void setGracefulStop(boolean gracefulStop)
    • getUser

      public CurrentUser getUser()
      Identity of the authenticated user account on the socket.
    • getRemoteAddress

      public SocketAddress getRemoteAddress()
    • getRemoteAddressAsString

      public String getRemoteAddressAsString()
    • getPeerAgent

      public String getPeerAgent()
    • setPeerAgent

      public void setPeerAgent(String agent)