|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream anon.crypto.tinytls.TinyTLSServerSocket.TLSInputStream
class TinyTLSServerSocket.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
|
private static int |
STATE_LENGTH
|
private static int |
STATE_PAYLOAD
|
private static int |
STATE_START
|
private static int |
STATE_VERSION
|
Constructor Summary | |
---|---|
TinyTLSServerSocket.TLSInputStream(java.io.InputStream istream)
Constructor |
Method Summary | |
---|---|
int |
available()
|
private void |
handleAlert()
handle alert message |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
readClientFinished()
checks the client finished message |
void |
readClientHello()
reads the client hello |
void |
readClientKeyExchange()
processes the client key exchange |
private void |
readRecord()
Reads one record if we need more data... |
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
private static final int STATE_START
private static final int STATE_VERSION
private static final int STATE_LENGTH
private static final int STATE_PAYLOAD
Constructor Detail |
---|
public TinyTLSServerSocket.TLSInputStream(java.io.InputStream istream)
istream
- inputstreamMethod Detail |
---|
private void readRecord() throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available()
available
in class java.io.InputStream
private void handleAlert() throws java.io.IOException
java.io.IOException
public void readClientHello() throws java.io.IOException
java.io.IOException
public void readClientKeyExchange() throws java.io.IOException
java.io.IOException
public void readClientFinished() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |