org.mpisws.p2p.transport.peerreview.identity
Interface CertificateManager<Identifier>
- Type Parameters:
Identifier
-
- All Known Implementing Classes:
- CertificateTransprotLayerImpl
public interface CertificateManager<Identifier>
Stores some Certificates, sign/verify, can fetch Certificates
- Author:
- Jeff Hoye
Method Summary |
boolean |
hasCertificate(Identifier id)
|
Cancellable |
requestCertificate(Identifier 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)
|
void |
verify(Identifier id,
byte[] msg,
int moff,
int mlen,
byte[] signature,
int soff,
int slen)
|
sign
byte[] sign(byte[] bytes)
throws java.security.SignatureException
- Throws:
java.security.SignatureException
verify
void verify(Identifier id,
byte[] msg,
int moff,
int mlen,
byte[] signature,
int soff,
int slen)
throws java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
java.security.SignatureException,
UnknownCertificateException
- Throws:
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
java.security.SignatureException
UnknownCertificateException
hasCertificate
boolean hasCertificate(Identifier id)
requestCertificate
Cancellable requestCertificate(Identifier source,
Identifier certHolder,
Continuation<java.security.cert.X509Certificate,java.lang.Exception> c,
java.util.Map<java.lang.String,java.lang.Object> options)
Copyright © 2001-2005 - Rice Pastry.