ch.ethz.ssh2.transport

Class TransportConnection


public class TransportConnection
extends java.lang.Object

TransportConnection.

Constructor Summary

TransportConnection(InputStream is, OutputStream os, SecureRandom rnd)

Method Summary

void
changeRecvCipher(BlockCipher bc, MAC mac)
void
changeSendCipher(BlockCipher bc, MAC mac)
int
getPacketOverheadEstimate()
int
peekNextMessageLength()
int
receiveMessage(buffer[] , int off, int len)
void
sendMessage(byte[] message)
void
sendMessage(byte[] message, int off, int len)
void
sendMessage(byte[] message, int off, int len, int padd)

Constructor Details

TransportConnection

public TransportConnection(InputStream is,
                           OutputStream os,
                           SecureRandom rnd)

Method Details

changeRecvCipher

public void changeRecvCipher(BlockCipher bc,
                             MAC mac)

changeSendCipher

public void changeSendCipher(BlockCipher bc,
                             MAC mac)

getPacketOverheadEstimate

public int getPacketOverheadEstimate()

peekNextMessageLength

public int peekNextMessageLength()
            throws IOException

receiveMessage

public int receiveMessage(buffer[] ,
                          int off,
                          int len)
            throws IOException

sendMessage

public void sendMessage(byte[] message)
            throws IOException

sendMessage

public void sendMessage(byte[] message,
                        int off,
                        int len)
            throws IOException

sendMessage

public void sendMessage(byte[] message,
                        int off,
                        int len,
                        int padd)
            throws IOException