|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
anon.crypto.tinytls.TinyTLS.TLSOutputStream
class TinyTLS.TLSOutputStream
| Field Summary | |
|---|---|
private TLSPlaintextRecord |
m_aktTLSRecord
|
private java.io.OutputStream |
m_stream
|
| Constructor Summary | |
|---|---|
TinyTLS.TLSOutputStream(java.io.OutputStream ostream)
Constructor |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
private void |
send(int type,
byte[] message,
int offset,
int len)
send a message to the server |
void |
sendCertificateVerify()
send a certificate verify message if a certificate is used |
void |
sendChangeCipherSpec()
send a change cipher spec message now all client data will be encrypted |
void |
sendClientCertificate()
send a client certificate message |
void |
sendClientFinished()
send a client finished message |
void |
sendClientHello()
send a client hello message |
void |
sendClientKeyExchange()
send a client key exchange message |
void |
sendCloseNotify()
send a close notify message to inform the peer that this connection will be closed now message |
void |
sendHandshake(int type,
byte[] message)
send a handshake message to the server |
void |
write(byte[] message)
|
void |
write(byte[] message,
int offset,
int len)
|
void |
write(int i)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.io.OutputStream m_stream
private TLSPlaintextRecord m_aktTLSRecord
| Constructor Detail |
|---|
public TinyTLS.TLSOutputStream(java.io.OutputStream ostream)
ostream - outputstream| Method Detail |
|---|
public void write(byte[] message)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] message,
int offset,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(int i)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
private void send(int type,
byte[] message,
int offset,
int len)
throws java.io.IOException
type - type of the tls messagemessage - message
java.io.IOException
public void sendHandshake(int type,
byte[] message)
throws java.io.IOException
type - handshake typemessage - message
java.io.IOException
public void sendClientHello()
throws java.io.IOException
java.io.IOException
public void sendClientCertificate()
throws java.io.IOException
java.io.IOException
public void sendClientKeyExchange()
throws java.io.IOException
java.io.IOException
public void sendCertificateVerify()
throws java.io.IOException
java.io.IOException
public void sendChangeCipherSpec()
throws java.io.IOException
java.io.IOException
public void sendCloseNotify()
throws java.io.IOException
java.io.IOException
public void sendClientFinished()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||