com.kodemuse.security.ssl
Class Handshake

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

class Handshake
extends LogCapability
implements DataSource

 struct {
     HandshakeType msg_type;    // handshake type
     uint24 length;             // bytes in message
     select (HandshakeType) {
     case hello_request: HelloRequest;
     case client_hello: ClientHello;
     case server_hello: ServerHello;
     case certificate: Certificate;
     case server_key_exchange: ServerKeyExchange;
     case certificate_request: CertificateRequest;
     case server_hello_done: ServerHelloDone;
     case certificate_verify: CertificateVerify;
     case client_key_exchange: ClientKeyExchange;
     case finished: Finished;
     } body;
 } Handshake;
 

Author:
Harmeet Bedi

Constructor Summary
Handshake(java.io.DataInputStream din)
           
Handshake(HandshakeType type, byte[] fragment)
           
 
Method Summary
 byte[] getFragment()
           
 HandshakeType getType()
           
 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

Handshake

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

Handshake

public Handshake(HandshakeType type,
                 byte[] fragment)
Method Detail

write

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

getFragment

public byte[] getFragment()

getType

public HandshakeType getType()

toString

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