com.maverick.sshd
Class Connection

java.lang.Object
  extended by com.maverick.sshd.Connection

public class Connection
extends Object


Constructor Summary
Connection()
           
 
Method Summary
 void addListener(ConnectionListener listener)
           
 void disconnect(String reason)
           
 List<Channel> getChannels()
           
 ConnectionProtocol getConnectionProtocol()
           
 SshContext getContext()
           
 ConnectionListener[] getListeners()
           
 SocketAddress getLocalSocketAddress()
           
 SocketAddress getRemoteSocketAddress()
           
 org.apache.mina.core.session.IoSession getSession()
           
 byte[] getSessionId()
           
 String getUsername()
           
 String getUUID()
           
 boolean isAuthenticated()
           
 boolean isDisconnected()
           
 void removeListener(ConnectionListener listener)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection()
Method Detail

getUUID

public String getUUID()

getSessionId

public byte[] getSessionId()

addListener

public void addListener(ConnectionListener listener)

removeListener

public void removeListener(ConnectionListener listener)

getUsername

public String getUsername()

getRemoteSocketAddress

public SocketAddress getRemoteSocketAddress()

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()

isDisconnected

public boolean isDisconnected()

disconnect

public void disconnect(String reason)

isAuthenticated

public boolean isAuthenticated()

getContext

public SshContext getContext()

getChannels

public List<Channel> getChannels()

getSession

public org.apache.mina.core.session.IoSession getSession()

getConnectionProtocol

public ConnectionProtocol getConnectionProtocol()

setUsername

public void setUsername(String username)

getListeners

public ConnectionListener[] getListeners()


Copyright © 2012. All Rights Reserved.