Package com.google.gerrit.sshd
Class SshSession
- java.lang.Object
-
- com.google.gerrit.sshd.SshSession
-
public class SshSession extends Object
Global data related to an active SSH connection.
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.sshd.common.AttributeRepository.AttributeKey<SshSession>
KEY
ServerSession attribute key for this object instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPeerAgent()
SocketAddress
getRemoteAddress()
String
getRemoteAddressAsString()
int
getSessionId()
Unique session number, assigned during connect.CurrentUser
getUser()
Identity of the authenticated user account on the socket.boolean
requiresGracefulStop()
void
setGracefulStop(boolean gracefulStop)
void
setPeerAgent(String agent)
-
-
-
Field Detail
-
KEY
public static final org.apache.sshd.common.AttributeRepository.AttributeKey<SshSession> KEY
ServerSession attribute key for this object instance.
-
-
Method Detail
-
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)
-
-