Rice Pastry API

org.mpisws.p2p.transport.peerreview.identity
Interface CertificateManager<Handle,Identifier>

Type Parameters:
Identifier -
All Known Subinterfaces:
IdentityTransport<Handle,Identifier>, PeerReview<Handle,Identifier>
All Known Implementing Classes:
IdentityTransportLayerImpl, PeerReviewImpl

public interface CertificateManager<Handle,Identifier>

Stores some Certificates, sign/verify, can fetch Certificates

Author:
Jeff Hoye

Method Summary
 short getSignatureSizeBytes()
           
 boolean hasCertificate(Identifier id)
           
 Cancellable requestCertificate(Handle source, Identifier certHolder, Continuation<java.security.cert.X509Certificate,java.lang.Exception> c, java.util.Map<java.lang.String,java.lang.Object> options)
           
 byte[] sign(byte[] bytes)
           
 int verify(Identifier id, byte[] msg, byte[] signature)
           
 

Method Detail

sign

byte[] sign(byte[] bytes)

verify

int verify(Identifier id,
           byte[] msg,
           byte[] signature)

hasCertificate

boolean hasCertificate(Identifier id)

requestCertificate

Cancellable requestCertificate(Handle source,
                               Identifier certHolder,
                               Continuation<java.security.cert.X509Certificate,java.lang.Exception> c,
                               java.util.Map<java.lang.String,java.lang.Object> options)

getSignatureSizeBytes

short getSignatureSizeBytes()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection