org.bouncycastle.crypto.tls

Class RecordStream

public class RecordStream extends Object

An implementation of the TLS 1.0 record layer.
Field Summary
protected CombinedHashhash1
protected CombinedHashhash2
protected TlsCipherSuitereadSuite
protected TlsCipherSuitewriteSuite
Constructor Summary
protected RecordStream(TlsProtocolHandler handler, InputStream is, OutputStream os)
Method Summary
protected voidclose()
protected byte[]decodeAndVerify(short type, InputStream is, int len)
protected voidflush()
voidreadData()
protected voidwriteMessage(short type, byte[] message, int offset, int len)

Field Detail

hash1

protected CombinedHash hash1

hash2

protected CombinedHash hash2

readSuite

protected TlsCipherSuite readSuite

writeSuite

protected TlsCipherSuite writeSuite

Constructor Detail

RecordStream

protected RecordStream(TlsProtocolHandler handler, InputStream is, OutputStream os)

Method Detail

close

protected void close()

decodeAndVerify

protected byte[] decodeAndVerify(short type, InputStream is, int len)

flush

protected void flush()

readData

public void readData()

writeMessage

protected void writeMessage(short type, byte[] message, int offset, int len)