public class

TransportConnection

extends Object
java.lang.Object
   ↳ com.trilead.ssh2.transport.TransportConnection

Class Overview

TransportConnection.

Summary

Fields
CipherInputStream cis
CipherOutputStream cos
ClientServerHello csh
private static final Logger log
MAC recv_mac
byte[] recv_mac_buffer
byte[] recv_mac_buffer_cmp
final byte[] recv_packet_header_buffer
boolean recv_packet_header_present
int recv_padd_blocksize
final byte[] recv_padding_buffer
int recv_seq_number
final SecureRandom rnd
MAC send_mac
byte[] send_mac_buffer
final byte[] send_packet_header_buffer
int send_padd_blocksize
final byte[] send_padding_buffer
int send_seq_number
boolean useRandomPadding
Public Constructors
TransportConnection(InputStream is, OutputStream os, SecureRandom rnd)
Public Methods
void changeRecvCipher(BlockCipher bc, MAC mac)
void changeSendCipher(BlockCipher bc, MAC mac)
int getPacketOverheadEstimate()
int peekNextMessageLength()
int receiveMessage(byte[] buffer, int off, int len)
void sendMessage(byte[] message, int off, int len, int padd)
void sendMessage(byte[] message)
void sendMessage(byte[] message, int off, int len)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static final Logger log

MAC recv_mac

byte[] recv_mac_buffer

byte[] recv_mac_buffer_cmp

final byte[] recv_packet_header_buffer

boolean recv_packet_header_present

int recv_padd_blocksize

final byte[] recv_padding_buffer

int recv_seq_number

final SecureRandom rnd

MAC send_mac

byte[] send_mac_buffer

final byte[] send_packet_header_buffer

int send_padd_blocksize

final byte[] send_padding_buffer

int send_seq_number

boolean useRandomPadding

Public Constructors

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

Parameters
is
os
rnd

Public Methods

public void changeRecvCipher (BlockCipher bc, MAC mac)

Parameters
bc
mac

public void changeSendCipher (BlockCipher bc, MAC mac)

Parameters
bc
mac

public int getPacketOverheadEstimate ()

public int peekNextMessageLength ()

Throws
IOException

public int receiveMessage (byte[] buffer, int off, int len)

Parameters
buffer
off
len
Throws
IOException

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

Parameters
message
off
len
padd
Throws
IOException

public void sendMessage (byte[] message)

Parameters
message
Throws
IOException

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

Parameters
message
off
len
Throws
IOException