anon.crypto.tinytls
Class TLSPlaintextRecord

java.lang.Object
  extended by anon.crypto.tinytls.AbstractTLSRecord
      extended by anon.crypto.tinytls.TLSPlaintextRecord

public final class TLSPlaintextRecord
extends AbstractTLSRecord

This is the TLS plaintext record


Field Summary
static int CONTENTTYPE_HANDSHAKE
           
static int HEADER_LENGTH
           
private  int m_nextHandshakeRecordOffset
           
static int MAX_PAYLOAD_SIZE
           
 
Fields inherited from class anon.crypto.tinytls.AbstractTLSRecord
m_Data, m_dataLen, m_Header, m_Type
 
Constructor Summary
TLSPlaintextRecord()
          Constructor
 
Method Summary
 void clean()
           
 int getHeaderLength()
           
 int getMaxPayloadSize()
           
 TLSHandshakeRecord getNextHandshakeRecord()
          Retruns the next handshake record from inside the payload
 boolean hasMoreHandshakeRecords()
          Retruns true if this record contains in the payload some more handshake records.
 void setLength(int len)
          sets the length of the tls record
 
Methods inherited from class anon.crypto.tinytls.AbstractTLSRecord
getData, getHeader, getLength, getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENTTYPE_HANDSHAKE

public static final int CONTENTTYPE_HANDSHAKE
See Also:
Constant Field Values

HEADER_LENGTH

public static final int HEADER_LENGTH
See Also:
Constant Field Values

MAX_PAYLOAD_SIZE

public static final int MAX_PAYLOAD_SIZE
See Also:
Constant Field Values

m_nextHandshakeRecordOffset

private int m_nextHandshakeRecordOffset
Constructor Detail

TLSPlaintextRecord

public TLSPlaintextRecord()
Constructor

Method Detail

clean

public void clean()

getHeaderLength

public int getHeaderLength()
Specified by:
getHeaderLength in class AbstractTLSRecord

getMaxPayloadSize

public int getMaxPayloadSize()

setLength

public void setLength(int len)
sets the length of the tls record

Parameters:
len - length

hasMoreHandshakeRecords

public boolean hasMoreHandshakeRecords()
Retruns true if this record contains in the payload some more handshake records.


getNextHandshakeRecord

public TLSHandshakeRecord getNextHandshakeRecord()
Retruns the next handshake record from inside the payload