Package org.xwiki.crypto.store
Interface CertificateStore
-
@Role public interface CertificateStore
Store and retrieve certificates of entities and provide certificates for chain verification.- Since:
- 6.1M2
- Version:
- $Id: 8b4870cb94edb7eec973f0ebb3a6a32b4282fc9f $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<CertifiedPublicKey>getAllCertificates(StoreReference store)Return all the certificates available in a certificate store.CertificateProvidergetCertificateProvider(StoreReference store)Return a certificate provider providing from the given certificate store.voidstore(StoreReference store, CertifiedPublicKey certificate)Store a certificate into a certificate store.
-
-
-
Method Detail
-
store
void store(StoreReference store, CertifiedPublicKey certificate) throws CertificateStoreException
Store a certificate into a certificate store.- Parameters:
store- the reference of the store where the certificate should be saved.certificate- the certificate to store.- Throws:
CertificateStoreException- on error.
-
getCertificateProvider
CertificateProvider getCertificateProvider(StoreReference store) throws CertificateStoreException
Return a certificate provider providing from the given certificate store.- Parameters:
store- the reference of the store where the certificate should be saved.- Returns:
- a certificate provider.
- Throws:
CertificateStoreException- on error.
-
getAllCertificates
Collection<CertifiedPublicKey> getAllCertificates(StoreReference store) throws CertificateStoreException
Return all the certificates available in a certificate store.- Parameters:
store- the reference of the store where the certificate should be saved.- Returns:
- a collection of certificates.
- Throws:
CertificateStoreException- on error.
-
-