ostore.dtree
Class JoinTreeResp

java.lang.Object
  |
  +--ostore.dtree.DTreeResp
        |
        +--ostore.dtree.JoinTreeResp
All Implemented Interfaces:
QueueElementIF, QuickSerializable

public class JoinTreeResp
extends DTreeResp

Messages dispatched by a DTreeNode responding to JoinTreeReq message. When the message indicates successful admission, it includes the certificates required to verify signatures on objects from the tree, as well as the most recent heartbeat for the tree's data object. These objects let the local machine immediately begin to interact with the tree securely.

Version:
$Id: JoinTreeResp.java,v 1.19 2002/07/29 18:48:53 geels Exp $
Author:
Dennis Geels

Field Summary
protected  SignedQS signed_hb
          The most recent heartbeat for the tree's data object, signed.
protected  SignedQS signed_resp
          The signed CreateObjectResp containing the certificates required to check signatures on objects sent down the new tree.
 
Fields inherited from class ostore.dtree.DTreeResp
DENIED, digest, error_code, NO_ERROR, NOT_OPEN, req_digest, tree_id, UNKNOWN_TREE, UNREACHABLE
 
Constructor Summary
JoinTreeResp(InputBuffer buffer)
          Constructs a JoinTreeResp from its serialized form.
JoinTreeResp(JoinTreeReq req, int error_code)
          Creates a new (failed) JoinTreeResp.
JoinTreeResp(JoinTreeReq req, SignedQS signed_resp, SignedQS signed_hb)
          Creates a new (successful) JoinTreeResp.
 
Method Summary
 SignedQS get_signed_hb()
          Returns the most recent heartbeat for the tree's data object, signed.
 SignedQS get_signed_resp()
          Returns signed CreateObjectResp containing the certificates required to check signatures on objects sent down the new tree.
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 
Methods inherited from class ostore.dtree.DTreeResp
get_digest, get_error_code, get_req_digest, get_tree_id, hashCode, successful, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

signed_resp

protected SignedQS signed_resp
The signed CreateObjectResp containing the certificates required to check signatures on objects sent down the new tree.


signed_hb

protected SignedQS signed_hb
The most recent heartbeat for the tree's data object, signed. The heartbeat itself may be any of the Heartbeat-like objects.

Constructor Detail

JoinTreeResp

public JoinTreeResp(JoinTreeReq req,
                    SignedQS signed_resp,
                    SignedQS signed_hb)
Creates a new (successful) JoinTreeResp.

Parameters:
req - the corresponding JoinTreeReq.
signed_resp - The CreateObjectResp for the tree's data object.
signed_hb - The most recent heartbeat for the tree's data object, signed.

JoinTreeResp

public JoinTreeResp(JoinTreeReq req,
                    int error_code)
Creates a new (failed) JoinTreeResp.

Parameters:
req - the corresponding JoinTreeReq.
error_code - the reason the request failed.

JoinTreeResp

public JoinTreeResp(InputBuffer buffer)
             throws QSException
Constructs a JoinTreeResp from its serialized form.

Method Detail

get_signed_resp

public SignedQS get_signed_resp()
Returns signed CreateObjectResp containing the certificates required to check signatures on objects sent down the new tree.


get_signed_hb

public SignedQS get_signed_hb()
Returns the most recent heartbeat for the tree's data object, signed.


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 DTreeResp
Parameters:
buffer - the output buffer to add the object to