ostore.mac
Class DHMessage

java.lang.Object
  |
  +--dd.api.DDRouteMsg
        |
        +--ostore.mac.DHMessage
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class DHMessage
extends DDRouteMsg

Message specific to Diffie-Hellman StS key agreement


Field Summary
static int FINALIZE
           
static int INITIALIZE
           
 QSMACType MACType
           
 int messageType
           
 QSDHPublicKey QSkey
           
static int RESPOND
           
 QSPublicKey sigkey
           
 
Fields inherited from class dd.api.DDRouteMsg
dd_intermediate_upcall, hopCount, inbound, one_hop, peer, recursive_route, TTL
 
Constructor Summary
DHMessage(InputBuffer buffer)
          Generate DHMessage from data
DHMessage(SecureHash toWhom, DHPublicKey key, QSPublicKey sigkey, QSMACType MACType, QuickSerializable user_data, QSByteArray mac, int messageType, boolean recursive, boolean dd_intermediate_upcall, boolean one_hop)
           
 
Method Summary
 void print()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INITIALIZE

public static int INITIALIZE

RESPOND

public static int RESPOND

FINALIZE

public static int FINALIZE

QSkey

public QSDHPublicKey QSkey

sigkey

public QSPublicKey sigkey

MACType

public QSMACType MACType

messageType

public int messageType
Constructor Detail

DHMessage

public DHMessage(SecureHash toWhom,
                 DHPublicKey key,
                 QSPublicKey sigkey,
                 QSMACType MACType,
                 QuickSerializable user_data,
                 QSByteArray mac,
                 int messageType,
                 boolean recursive,
                 boolean dd_intermediate_upcall,
                 boolean one_hop)

DHMessage

public DHMessage(InputBuffer buffer)
          throws QSException
Generate DHMessage from data

Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class DDRouteMsg
Parameters:
buffer - the output buffer to add the object to

toString

public String toString()
Overrides:
toString in class Object

print

public void print()