com.kodemuse.security.ssl
Class ServerHello

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

class ServerHello
extends LogCapability
implements DataSource

 struct {
     ProtocolVersion server_version;
     Random random;
     SessionID session_id;
     CipherSpec cipher_suite;
     CompressionMethod compression_method;
 } ServerHello;
 

Author:
Harmeet Bedi

Constructor Summary
ServerHello(java.io.DataInputStream din)
           
ServerHello(ProtocolVersion version, SessionID sessionID, CipherSpec cipherSuite)
           
 
Method Summary
 CipherSpec getCipherSpec()
           
 Random getRandom()
           
 SessionID getSessionID()
           
 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

ServerHello

public ServerHello(java.io.DataInputStream din)
            throws java.io.IOException

ServerHello

public ServerHello(ProtocolVersion version,
                   SessionID sessionID,
                   CipherSpec cipherSuite)
            throws java.io.IOException
Method Detail

getSessionID

public SessionID getSessionID()

getRandom

public Random getRandom()

getCipherSpec

public CipherSpec getCipherSpec()

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