Package com.trilead.ssh2.transport
Class TransportManager
- java.lang.Object
-
- com.trilead.ssh2.transport.TransportManager
-
public class TransportManager extends java.lang.ObjectTransportManager.
-
-
Constructor Summary
Constructors Constructor Description TransportManager(java.lang.String host, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeRecvCipher(BlockCipher bc, MAC mac)voidchangeSendCipher(BlockCipher bc, MAC mac)voidclose(java.lang.Throwable cause, boolean useDisconnectPacket)voidforceKeyExchange(CryptoWishList cwl, DHGexParameters dhgex)ConnectionInfogetConnectionInfo(int kexNumber)intgetPacketOverheadEstimate()java.lang.ThrowablegetReasonClosedCause()byte[]getSessionIdentifier()ClientServerHellogetVersionInfo()voidinitialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, int readTimeout, java.security.SecureRandom rnd, ProxyData proxyData)voidinitialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, java.security.SecureRandom rnd, ProxyData proxyData)voidkexFinished()voidreceiveLoop()voidregisterMessageHandler(MessageHandler mh, int low, int high)voidremoveMessageHandler(MessageHandler mh, int low, int high)voidsendAsynchronousMessage(byte[] msg)voidsendKexMessage(byte[] msg)voidsendMessage(byte[] msg)voidsetConnectionMonitors(java.util.Vector monitors)voidsetSoTimeout(int timeout)voidsetTcpNoDelay(boolean state)
-
-
-
Method Detail
-
getPacketOverheadEstimate
public int getPacketOverheadEstimate()
-
setTcpNoDelay
public void setTcpNoDelay(boolean state) throws java.io.IOException- Throws:
java.io.IOException
-
setSoTimeout
public void setSoTimeout(int timeout) throws java.io.IOException- Throws:
java.io.IOException
-
getConnectionInfo
public ConnectionInfo getConnectionInfo(int kexNumber) throws java.io.IOException
- Throws:
java.io.IOException
-
getVersionInfo
public ClientServerHello getVersionInfo()
-
getReasonClosedCause
public java.lang.Throwable getReasonClosedCause()
-
getSessionIdentifier
public byte[] getSessionIdentifier()
-
close
public void close(java.lang.Throwable cause, boolean useDisconnectPacket)
-
initialize
public void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, java.security.SecureRandom rnd, ProxyData proxyData) throws java.io.IOException
- Throws:
java.io.IOException
-
initialize
public void initialize(CryptoWishList cwl, ServerHostKeyVerifier verifier, DHGexParameters dhgex, int connectTimeout, int readTimeout, java.security.SecureRandom rnd, ProxyData proxyData) throws java.io.IOException
- Throws:
java.io.IOException
-
registerMessageHandler
public void registerMessageHandler(MessageHandler mh, int low, int high)
-
removeMessageHandler
public void removeMessageHandler(MessageHandler mh, int low, int high)
-
sendKexMessage
public void sendKexMessage(byte[] msg) throws java.io.IOException- Throws:
java.io.IOException
-
kexFinished
public void kexFinished() throws java.io.IOException- Throws:
java.io.IOException
-
forceKeyExchange
public void forceKeyExchange(CryptoWishList cwl, DHGexParameters dhgex) throws java.io.IOException
- Throws:
java.io.IOException
-
changeRecvCipher
public void changeRecvCipher(BlockCipher bc, MAC mac)
-
changeSendCipher
public void changeSendCipher(BlockCipher bc, MAC mac)
-
sendAsynchronousMessage
public void sendAsynchronousMessage(byte[] msg) throws java.io.IOException- Throws:
java.io.IOException
-
setConnectionMonitors
public void setConnectionMonitors(java.util.Vector monitors)
-
sendMessage
public void sendMessage(byte[] msg) throws java.io.IOException- Throws:
java.io.IOException
-
receiveLoop
public void receiveLoop() throws java.io.IOException- Throws:
java.io.IOException
-
-