ostore.network
Class VirtualizedNetCert

java.lang.Object
  |
  +--ostore.network.VirtualizedNetCert
All Implemented Interfaces:
QuickSerializable

public class VirtualizedNetCert
extends Object
implements QuickSerializable

Certifies that a virtual node can be contacted through a specified proxy. An AuthenticationMsg includes one VirtualizedNetCert for each virtual node in the system.

Eventually should be signed.

Version:
$Id: VirtualizedNetCert.java,v 1.1 2003/02/07 00:11:34 geels Exp $
Author:
Dennis Geels

Constructor Summary
VirtualizedNetCert(InputBuffer buffer)
          Constructs an VirtualizedNetCert from its serialized form.
VirtualizedNetCert(NodeId virtual_node_id, NodeId contact_id)
          Creates a new VirtualizedNetCert.
 
Method Summary
 NodeId get_contact_id()
          Returns the id at which to contact the virtual node.
 NodeId get_virtual_node_id()
          Returns the id of the virtual node.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
          Returns a human-readable representation of this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VirtualizedNetCert

public VirtualizedNetCert(NodeId virtual_node_id,
                          NodeId contact_id)
Creates a new VirtualizedNetCert.


VirtualizedNetCert

public VirtualizedNetCert(InputBuffer buffer)
                   throws QSException
Constructs an VirtualizedNetCert from its serialized form.

Method Detail

get_virtual_node_id

public NodeId get_virtual_node_id()
Returns the id of the virtual node.


get_contact_id

public NodeId get_contact_id()
Returns the id at which to contact the virtual node.


serialize

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

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

toString

public String toString()
Returns a human-readable representation of this message.

Overrides:
toString in class Object