|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
anon.crypto.tinytls.TinyTLS.TLSInputStream
class TinyTLS.TLSInputStream
| Field Summary | |
|---|---|
private int |
m_aktPendLen
|
private int |
m_aktPendOffset
|
private TLSPlaintextRecord |
m_aktTLSRecord
|
private int |
m_ReadRecordState
|
private java.io.DataInputStream |
m_stream
|
| Fields inherited from interface anon.crypto.tinytls.TinyTLS.ITLSConstants |
|---|
STATE_LENGTH, STATE_PAYLOAD, STATE_START, STATE_VERSION |
| Constructor Summary | |
|---|---|
TinyTLS.TLSInputStream(java.io.InputStream istream)
Constructor |
|
| Method Summary | |
|---|---|
int |
available()
|
private void |
gotCertificate(TLSHandshakeRecord msg)
process server certificate |
private void |
gotCertificateRequest(TLSHandshakeRecord msg)
handle certificate request |
private void |
gotServerHello(TLSHandshakeRecord msg)
process server hello |
private void |
gotServerHelloDone()
handle server hello done message |
private void |
gotServerKeyExchange(TLSHandshakeRecord msg)
process server key exchange message |
private void |
handleAlert()
handle alert message |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
private void |
readRecord()
Reads one record if we need more data... |
protected void |
readServerFinished()
wait for server finished message |
protected void |
readServerHandshakes()
read the server handshakes and handle alerts |
| Methods inherited from class java.io.InputStream |
|---|
close, mark, markSupported, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.io.DataInputStream m_stream
private int m_aktPendOffset
private int m_aktPendLen
private TLSPlaintextRecord m_aktTLSRecord
private int m_ReadRecordState
| Constructor Detail |
|---|
public TinyTLS.TLSInputStream(java.io.InputStream istream)
istream - inputstream| Method Detail |
|---|
private void readRecord()
throws java.io.IOException
java.io.IOException
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
available in class java.io.InputStream
private void gotServerHello(TLSHandshakeRecord msg)
throws java.io.IOException
bytes - server hello message
java.io.IOException
private void gotCertificate(TLSHandshakeRecord msg)
throws java.io.IOException
bytes - server certificate message
java.io.IOException
private void gotServerKeyExchange(TLSHandshakeRecord msg)
throws java.io.IOException
bytes - server key exchange message
java.io.IOException
java.lang.Exceptionprivate void gotCertificateRequest(TLSHandshakeRecord msg)
bytes - certificate request messageprivate void gotServerHelloDone()
bytes - server hello done message
private void handleAlert()
throws java.io.IOException
java.io.IOException
protected void readServerHandshakes()
throws java.io.IOException
java.io.IOException
CertificateException
java.lang.Exception
protected void readServerFinished()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||