|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.dtree.DTreeResp | +--ostore.dtree.JoinTreeResp
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.
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
serialize d 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 |
protected SignedQS signed_resp
CreateObjectResp
containing the certificates
required to check signatures on objects sent down the new tree.
protected SignedQS signed_hb
Heartbeat
-like
objects.
Constructor Detail |
public JoinTreeResp(JoinTreeReq req, SignedQS signed_resp, SignedQS signed_hb)
JoinTreeResp
.
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.public JoinTreeResp(JoinTreeReq req, int error_code)
JoinTreeResp
.
req
- the corresponding JoinTreeReq
.error_code
- the reason the request failed.public JoinTreeResp(InputBuffer buffer) throws QSException
JoinTreeResp
from its
serialize
d form.
Method Detail |
public SignedQS get_signed_resp()
CreateObjectResp
containing the certificates
required to check signatures on objects sent down the new tree.
public SignedQS get_signed_hb()
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
serialize
in class DTreeResp
buffer
- the output buffer to add the object to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |