net.jradius.client.auth.tls
Class RecordStream

java.lang.Object
  extended by net.jradius.client.auth.tls.RecordStream

public class RecordStream
extends java.lang.Object

An implementation of the TLS 1.0 record layer.


Field Summary
protected  org.bouncycastle.crypto.tls.CombinedHash hash1
           
protected  org.bouncycastle.crypto.tls.CombinedHash hash2
           
protected  TlsCipherSuite readSuite
           
protected  TlsCipherSuite writeSuite
           
 
Constructor Summary
protected RecordStream(TlsProtocolHandler handler)
           
 
Method Summary
protected  void close()
           
protected  byte[] decodeAndVerify(short type, java.io.InputStream is, int len)
           
protected  void flush()
           
 boolean hasMore()
           
 void readData()
           
 void setInputStream(java.io.ByteArrayInputStream stream)
           
 void setOutputStream(java.io.ByteArrayOutputStream stream)
           
protected  void writeMessage(short type, byte[] message, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hash1

protected org.bouncycastle.crypto.tls.CombinedHash hash1

hash2

protected org.bouncycastle.crypto.tls.CombinedHash hash2

readSuite

protected TlsCipherSuite readSuite

writeSuite

protected TlsCipherSuite writeSuite
Constructor Detail

RecordStream

protected RecordStream(TlsProtocolHandler handler)
Method Detail

setInputStream

public void setInputStream(java.io.ByteArrayInputStream stream)

setOutputStream

public void setOutputStream(java.io.ByteArrayOutputStream stream)

hasMore

public boolean hasMore()
                throws java.io.IOException
Throws:
java.io.IOException

readData

public void readData()
              throws java.io.IOException
Throws:
java.io.IOException

decodeAndVerify

protected byte[] decodeAndVerify(short type,
                                 java.io.InputStream is,
                                 int len)
                          throws java.io.IOException
Throws:
java.io.IOException

writeMessage

protected void writeMessage(short type,
                            byte[] message,
                            int offset,
                            int len)
                     throws java.io.IOException
Throws:
java.io.IOException

close

protected void close()
              throws java.io.IOException
Throws:
java.io.IOException

flush

protected void flush()
              throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008 JRadius Project, All Rights Reserved.