com.kodemuse.security.ssl
Class Random

java.lang.Object
  |
  +--com.kodemuse.security.ssl.LogCapability
        |
        +--com.kodemuse.security.ssl.Random
All Implemented Interfaces:
DataSource

class Random
extends LogCapability
implements DataSource

 struct {
     uint32 gmt_unix_time;
     opaque random_bytes[28];
 } Random;

 Single byte entities containing uninterpreted data are of type opaque.
 

Author:
Harmeet Bedi

Constructor Summary
(package private) Random()
           
(package private) Random(byte[] ba)
           
(package private) Random(java.io.DataInputStream inp)
           
 
Method Summary
 byte[] getData()
           
 java.lang.String toString()
           
 void write(OutputBuffer out)
           
 
Methods inherited from class com.kodemuse.security.ssl.LogCapability
log, protocolLog
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Random

Random(java.io.DataInputStream inp)
 throws java.io.IOException

Random

Random(byte[] ba)
 throws java.io.IOException

Random

Random()
Method Detail

getData

public byte[] getData()

write

public void write(OutputBuffer out)
Specified by:
write in interface DataSource

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object