public class Connection extends Object implements EventTrigger
Constructor and Description |
---|
Connection(TransportProtocol transport) |
public Connection(TransportProtocol transport)
public String getSessionId()
public String getRemoteIdentification()
public String getUUID()
public String getUsername()
public Date getStartTime()
public long getTotalBytesIn()
public long getTotalBytesOut()
public String getRemoteAddress()
public int getRemotePort()
public SocketAddress getRemoteSocketAddress()
public SocketAddress getLocalSocketAddress()
public String getLocalAddress()
public int getLocalPort()
public boolean isDisconnected()
public void disconnect(String reason)
public boolean isAuthenticated()
public SshContext getContext()
public boolean containsProperty(String name)
public void executeTask(Runnable r)
public void addEventListener(EventListener listener)
public void removeEventListener(EventListener listener)
public void fireEvent(Event evt)
fireEvent
in interface EventTrigger
public TransportProtocol getTransport()
public String getCipherCS()
public String getCipherSC()
public String getMacCS()
public String getMacSC()
public String getCompressionCS()
public String getCompressionSC()
public String getKeyEchangeInUse()
public String getHostKeyInUse()
public void disableIdleTimeout()
public void enableIdleTimeout()
public Locale getLocale()
public void setLocale(Locale locale)
public int getIdleConnectionTimeoutSeconds()
public void setIdleConnectionTimeoutSeconds(int idleConnectionTimeoutSeconds)
public String getIdent()
public void setIdent(String ident)
Copyright © 2024. All rights reserved.