class RecordStream
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.io.ByteArrayOutputStream |
buffer |
private TlsClientContext |
context |
private TlsProtocolHandler |
handler |
private CombinedHash |
hash |
private java.io.InputStream |
is |
private java.io.OutputStream |
os |
private TlsCipher |
readCipher |
private TlsCompression |
readCompression |
private TlsCipher |
writeCipher |
private TlsCompression |
writeCompression |
Constructor and Description |
---|
RecordStream(TlsProtocolHandler handler,
java.io.InputStream is,
java.io.OutputStream os) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
clientCipherSpecDecided(TlsCompression tlsCompression,
TlsCipher tlsCipher) |
protected void |
close() |
protected byte[] |
decodeAndVerify(short type,
java.io.InputStream is,
int len) |
private static byte[] |
doFinal(Digest d) |
protected void |
flush() |
private byte[] |
getBufferContents() |
(package private) byte[] |
getCurrentHash(byte[] sender)
'sender' only relevant to SSLv3
|
(package private) void |
init(TlsClientContext context) |
void |
readData() |
(package private) void |
serverClientSpecReceived() |
(package private) void |
updateHandshakeData(byte[] message,
int offset,
int len) |
protected void |
writeMessage(short type,
byte[] message,
int offset,
int len) |
private TlsProtocolHandler handler
private java.io.InputStream is
private java.io.OutputStream os
private TlsCompression readCompression
private TlsCompression writeCompression
private TlsCipher readCipher
private TlsCipher writeCipher
private java.io.ByteArrayOutputStream buffer
private TlsClientContext context
private CombinedHash hash
RecordStream(TlsProtocolHandler handler, java.io.InputStream is, java.io.OutputStream os)
void init(TlsClientContext context)
void clientCipherSpecDecided(TlsCompression tlsCompression, TlsCipher tlsCipher)
void serverClientSpecReceived()
public void readData() throws java.io.IOException
java.io.IOException
protected byte[] decodeAndVerify(short type, java.io.InputStream is, int len) throws java.io.IOException
java.io.IOException
protected void writeMessage(short type, byte[] message, int offset, int len) throws java.io.IOException
java.io.IOException
void updateHandshakeData(byte[] message, int offset, int len)
byte[] getCurrentHash(byte[] sender)
protected void close() throws java.io.IOException
java.io.IOException
protected void flush() throws java.io.IOException
java.io.IOException
private byte[] getBufferContents()
private static byte[] doFinal(Digest d)