Rice Pastry API

org.mpisws.p2p.transport.signature
Interface CertificateTransportLayer<Identifier,MessageType>

Type Parameters:
Identifier -
MessageType -
All Superinterfaces:
Destructable, TransportLayer<Identifier,MessageType>
All Known Implementing Classes:
CertificateTransprotLayerImpl

public interface CertificateTransportLayer<Identifier,MessageType>
extends TransportLayer<Identifier,MessageType>

Can fetch a Certificate. Caches known certificates.

Author:
Jeff Hoye

Method Summary
 Cancellable requestCertificate(Identifier source, Identifier principal, Continuation<java.security.cert.X509Certificate,java.lang.Exception> c, java.util.Map<java.lang.String,java.lang.Object> options)
          Get a certificate of the principal from the source.
 
Methods inherited from interface org.mpisws.p2p.transport.TransportLayer
acceptMessages, acceptSockets, getLocalIdentifier, openSocket, sendMessage, setCallback, setErrorHandler
 
Methods inherited from interface rice.Destructable
destroy
 

Method Detail

requestCertificate

Cancellable requestCertificate(Identifier source,
                               Identifier principal,
                               Continuation<java.security.cert.X509Certificate,java.lang.Exception> c,
                               java.util.Map<java.lang.String,java.lang.Object> options)
Get a certificate of the principal from the source.

Parameters:
source -
principal -
c -
options -
Returns:
UnknownCertificateException if the source doesn't know the certificate for the principal

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.