Package com.google.gerrit.sshd
Class SshSession
java.lang.Object
com.google.gerrit.sshd.SshSession
Global data related to an active SSH connection.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.sshd.common.AttributeRepository.AttributeKey<SshSession>
ServerSession attribute key for this object instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Unique session number, assigned during connect.getUser()
Identity of the authenticated user account on the socket.boolean
void
setGracefulStop
(boolean gracefulStop) void
setPeerAgent
(String agent)
-
Field Details
-
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
Identity of the authenticated user account on the socket. -
getRemoteAddress
-
getRemoteAddressAsString
-
getPeerAgent
-
setPeerAgent
-