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.OutputStream
java.io.IOException
public void write(byte[] message, int offset, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(int i) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
private void send(int type, byte[] message, int offset, int len) throws java.io.IOException
type
- type of the tls messagemessage
- messagejava.io.IOException
public void sendHandshake(int type, byte[] message) throws java.io.IOException
type
- handshaketypemessage
- messagejava.io.IOException
public void sendServerHello() throws java.io.IOException
java.io.IOException
public void sendServerCertificate() throws java.io.IOException
java.io.IOException
public void sendServerKeyExchange() throws java.io.IOException
java.io.IOException
public void sendServerHelloDone() throws java.io.IOException
java.io.IOException
public void sendServerHandshakes() throws java.io.IOException
java.io.IOException
public void sendChangeCipherSpec() throws java.io.IOException
java.io.IOException
public void sendServerFinished() throws java.io.IOException
java.io.IOException
Copyright © 2023. All rights reserved.