public class TransportManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PACKET_SIZE
Advertised maximum SSH packet size that the other side can send to us.
|
| Constructor and Description |
|---|
TransportManager(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeRecvCipher(BlockCipher bc,
MAC mac) |
void |
changeSendCipher(BlockCipher bc,
MAC mac) |
void |
close(Throwable cause,
boolean useDisconnectPacket) |
void |
forceKeyExchange(CryptoWishList cwl,
DHGexParameters dhgex) |
ConnectionInfo |
getConnectionInfo(int kexNumber) |
int |
getPacketOverheadEstimate() |
Throwable |
getReasonClosedCause() |
byte[] |
getSessionIdentifier() |
ClientServerHello |
getVersionInfo() |
void |
initialize(CryptoWishList cwl,
ServerHostKeyVerifier verifier,
DHGexParameters dhgex,
int connectTimeout,
SecureRandom rnd,
ProxyData proxyData) |
void |
kexFinished() |
void |
receiveLoop() |
void |
registerMessageHandler(MessageHandler mh,
int low,
int high) |
void |
removeMessageHandler(MessageHandler mh,
int low,
int high) |
void |
sendAsynchronousMessage(byte[] msg) |
void |
sendKexMessage(byte[] msg) |
void |
sendMessage(byte[] msg) |
void |
setConnectionMonitors(Vector monitors) |
void |
setSoTimeout(int timeout) |
void |
setTcpNoDelay(boolean state) |
public static final int MAX_PACKET_SIZE
public TransportManager(String host, int port) throws IOException
IOExceptionpublic int getPacketOverheadEstimate()
public void setTcpNoDelay(boolean state)
throws IOException
IOExceptionpublic void setSoTimeout(int timeout)
throws IOException
IOExceptionpublic ConnectionInfo getConnectionInfo(int kexNumber) throws IOException
IOExceptionpublic ClientServerHello getVersionInfo()
public Throwable getReasonClosedCause()
public byte[] getSessionIdentifier()
public void close(Throwable cause, boolean useDisconnectPacket)
public void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, SecureRandom rnd, ProxyData proxyData) throws IOException
IOExceptionpublic void registerMessageHandler(MessageHandler mh, int low, int high)
public void removeMessageHandler(MessageHandler mh, int low, int high)
public void sendKexMessage(byte[] msg)
throws IOException
IOExceptionpublic void kexFinished()
throws IOException
IOExceptionpublic void forceKeyExchange(CryptoWishList cwl, DHGexParameters dhgex) throws IOException
IOExceptionpublic void changeRecvCipher(BlockCipher bc, MAC mac)
public void changeSendCipher(BlockCipher bc, MAC mac)
public void sendAsynchronousMessage(byte[] msg)
throws IOException
IOExceptionpublic void setConnectionMonitors(Vector monitors)
public void sendMessage(byte[] msg)
throws IOException
IOExceptionpublic void receiveLoop()
throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.