From then on TLS/SSL records should be transmitted as normal -- the
TDS packet is part of the encrypted application data.
- Version:
- $Id: TdsTlsOutputStream.java,v 1.4 2005/04/28 14:29:31 alin_sinpalean Exp $
- Author:
- Rob Worsnop, Mike Hutchinson
Field Summary |
private java.util.List |
bufferedRecords
Used for holding back CKE, CCS and FIN records. |
private int |
totalSize
|
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary |
(package private) |
TdsTlsOutputStream(java.io.OutputStream out)
Constructs a TdsTlsOutputStream based on an underlying output stream. |
Method Summary |
private void |
deferRecord(byte[] record,
int len)
Holds back a record for batched transmission. |
void |
flush()
|
private void |
flushBufferedRecords()
Transmits the buffered batch of records. |
(package private) void |
putTdsPacket(byte[] b,
int len)
Write a TDS packet containing the TLS record(s). |
void |
write(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.FilterOutputStream |
close, write, write |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
bufferedRecords
private final java.util.List bufferedRecords
- Used for holding back CKE, CCS and FIN records.
totalSize
private int totalSize
TdsTlsOutputStream
TdsTlsOutputStream(java.io.OutputStream out)
- Constructs a TdsTlsOutputStream based on an underlying output stream.
- Parameters:
out
- the underlying output stream
deferRecord
private void deferRecord(byte[] record,
int len)
- Holds back a record for batched transmission.
- Parameters:
record
- the TLS record to bufferlen
- the length of the TLS record to buffer
flushBufferedRecords
private void flushBufferedRecords()
throws java.io.IOException
- Transmits the buffered batch of records.
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
putTdsPacket
void putTdsPacket(byte[] b,
int len)
throws java.io.IOException
- Write a TDS packet containing the TLS record(s).
- Parameters:
b
- the TLS recordlen
- the length of the TLS record
flush
public void flush()
throws java.io.IOException
- Overrides:
flush
in class java.io.FilterOutputStream
Generated on August 22 2007