anon.crypto.tinytls
Class AbstractTLSRecord

java.lang.Object
  extended by anon.crypto.tinytls.AbstractTLSRecord
Direct Known Subclasses:
TLSHandshakeRecord, TLSPlaintextRecord

public abstract class AbstractTLSRecord
extends java.lang.Object


Field Summary
protected  byte[] m_Data
           
protected  int m_dataLen
           
protected  byte[] m_Header
           
protected  int m_Type
           
 
Constructor Summary
AbstractTLSRecord()
           
 
Method Summary
 byte[] getData()
          Retruns the original buffer of the data of this TLS record!
 byte[] getHeader()
          Retruns the original buffer of the header of this TLS record!
abstract  int getHeaderLength()
           
 int getLength()
          Return the size of the payload data of this record.
 int getType()
          return the type of this tls record
 void setType(int type)
          sets the typeof the tls record
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Type

protected int m_Type

m_dataLen

protected int m_dataLen

m_Data

protected byte[] m_Data

m_Header

protected byte[] m_Header
Constructor Detail

AbstractTLSRecord

public AbstractTLSRecord()
Method Detail

getHeader

public byte[] getHeader()
Retruns the original buffer of the header of this TLS record!


getData

public byte[] getData()
Retruns the original buffer of the data of this TLS record!


setType

public void setType(int type)
sets the typeof the tls record

Parameters:
type - type

getType

public int getType()
return the type of this tls record


getLength

public int getLength()
Return the size of the payload data of this record.


getHeaderLength

public abstract int getHeaderLength()