|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mpisws.p2p.transport.peerreview.authpush.AuthenticatorPushProtocolImpl<Handle,Identifier>
public class AuthenticatorPushProtocolImpl<Handle extends RawSerializable,Identifier extends RawSerializable>
This protocol collects authenticators from incoming messages and, once in a while, batches them together and sends them to the witnesses.
Field Summary |
---|
Fields inherited from interface org.mpisws.p2p.transport.peerreview.StatusConstants |
---|
STATUS_EXPOSED, STATUS_SUSPECTED, STATUS_TRUSTED |
Constructor Summary | |
---|---|
AuthenticatorPushProtocolImpl(PeerReview<Handle,Identifier> peerreview,
AuthenticatorStore<Identifier> inStore,
AuthenticatorStore<Identifier> outStore,
AuthenticatorStore<Identifier> pendingStore,
IdentityTransport<Handle,Identifier> transport,
PeerInfoStore<Handle,Identifier> infoStore,
EvidenceTransferProtocol<Handle,Identifier> evidenceTransferProtocol,
Environment env)
|
Method Summary | |
---|---|
void |
addAuthenticatorsIfValid(java.util.List<Authenticator> authenticators,
Identifier id)
Called when some other node sends us an AUTHPUSH message. |
void |
continuePush(java.util.Map<Identifier,java.util.Collection<Handle>> subjectsToWitnesses)
|
void |
enableProbabilisticChecking(double pXmit)
|
void |
handleIncomingAuthenticators(Handle source,
AuthPushMessage<Identifier> msg)
Called when some other node sends us an AUTHPUSH message. |
void |
notifyCertificateAvailable(Identifier id)
When we receive a new certificate, we may be able to check some more signatures on auths in the authPendingStore |
void |
push()
|
protected void |
sendAuthenticators(Handle h,
java.util.Map<Identifier,java.util.List<Authenticator>> authenticators)
TODO: make this use udp, or smaller AuthPushMessages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthenticatorPushProtocolImpl(PeerReview<Handle,Identifier> peerreview, AuthenticatorStore<Identifier> inStore, AuthenticatorStore<Identifier> outStore, AuthenticatorStore<Identifier> pendingStore, IdentityTransport<Handle,Identifier> transport, PeerInfoStore<Handle,Identifier> infoStore, EvidenceTransferProtocol<Handle,Identifier> evidenceTransferProtocol, Environment env)
Method Detail |
---|
public void enableProbabilisticChecking(double pXmit)
public void push()
push
in interface AuthenticatorPushProtocol<Handle extends RawSerializable,Identifier extends RawSerializable>
public void continuePush(java.util.Map<Identifier,java.util.Collection<Handle>> subjectsToWitnesses)
continuePush
in interface AuthenticatorPushProtocol<Handle extends RawSerializable,Identifier extends RawSerializable>
protected void sendAuthenticators(Handle h, java.util.Map<Identifier,java.util.List<Authenticator>> authenticators) throws java.io.IOException
h
- authenticators
-
java.io.IOException
public void addAuthenticatorsIfValid(java.util.List<Authenticator> authenticators, Identifier id)
public void handleIncomingAuthenticators(Handle source, AuthPushMessage<Identifier> msg)
handleIncomingAuthenticators
in interface AuthenticatorPushProtocol<Handle extends RawSerializable,Identifier extends RawSerializable>
public void notifyCertificateAvailable(Identifier id)
notifyCertificateAvailable
in interface AuthenticatorPushProtocol<Handle extends RawSerializable,Identifier extends RawSerializable>
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |