class TinyTLSServerSocket.TLSOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
private TLSPlaintextRecord |
m_aktTLSRecord |
private java.io.DataOutputStream |
m_stream |
| Constructor and Description |
|---|
TLSOutputStream(java.io.OutputStream ostream)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush() |
private void |
send(int type,
byte[] message,
int offset,
int len)
send a message to the server
|
void |
sendChangeCipherSpec()
send a change cipher spec message
now all client data will be encrypted
|
void |
sendHandshake(int type,
byte[] message)
sends a handshake
|
void |
sendServerCertificate()
send the server certificate
|
void |
sendServerFinished()
send the server finished message
|
void |
sendServerHandshakes()
send server handshakes
|
void |
sendServerHello()
send a server hello
|
void |
sendServerHelloDone()
send a server hello done message
|
void |
sendServerKeyExchange()
send the server key exchange message
|
void |
write(byte[] message) |
void |
write(byte[] message,
int offset,
int len) |
void |
write(int i) |
private java.io.DataOutputStream m_stream
private TLSPlaintextRecord m_aktTLSRecord
public TLSOutputStream(java.io.OutputStream ostream)
ostream - outputstreampublic void write(byte[] message)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] message,
int offset,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int i)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionprivate void send(int type,
byte[] message,
int offset,
int len)
throws java.io.IOException
type - type of the tls messagemessage - messagejava.io.IOExceptionpublic void sendHandshake(int type,
byte[] message)
throws java.io.IOException
type - handshaketypemessage - messagejava.io.IOExceptionpublic void sendServerHello()
throws java.io.IOException
java.io.IOExceptionpublic void sendServerCertificate()
throws java.io.IOException
java.io.IOExceptionpublic void sendServerKeyExchange()
throws java.io.IOException
java.io.IOExceptionpublic void sendServerHelloDone()
throws java.io.IOException
java.io.IOExceptionpublic void sendServerHandshakes()
throws java.io.IOException
java.io.IOExceptionpublic void sendChangeCipherSpec()
throws java.io.IOException
java.io.IOExceptionpublic void sendServerFinished()
throws java.io.IOException
java.io.IOExceptionCopyright © 2023. All rights reserved.