public class SshSession extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.sshd.common.AttributeStore.AttributeKey<SshSession> |
KEY
ServerSession attribute key for this object instance.
|
Modifier and Type | Method and 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.
|
void |
setPeerAgent(String agent) |
public static final org.apache.sshd.common.AttributeStore.AttributeKey<SshSession> KEY
public int getSessionId()
public CurrentUser getUser()
public SocketAddress getRemoteAddress()
public String getRemoteAddressAsString()
public String getPeerAgent()
public void setPeerAgent(String agent)