org.openpermis.cert
Interface CertificateRepository

All Known Implementing Classes:
CertStoreCertificateRepository

public interface CertificateRepository

A certificate repository is a class that can be asked certificates or CRLs (certificate revocation lists) given certain search criteria. This interface offers the same functionality as the JCE class CertStore but - unlike the latter - can be implemented by a class in the case the used crypto provider does not offer the required functionality.

Since:
0.3.0

Method Summary
 Collection<? extends Certificate> getCertificates(CertSelector selector)
          Returns a collection of Certificates that match the specified selector.
 Collection<? extends CRL> getCrls(CRLSelector selector)
          Returns a collection of CRLs that match the specified selector.
 

Method Detail

getCertificates

Collection<? extends Certificate> getCertificates(CertSelector selector)
                                                  throws CertStoreException
Returns a collection of Certificates that match the specified selector. If no Certificates match the selector, an empty Collection is returned.

Parameters:
selector - A CertSelectorused to select which certificates should be returned.
Returns:
A collection of certificates that match the specified selector.
Throws:
CertStoreException - Thrown if an exception occurs.
Since:
0.3.0

getCrls

Collection<? extends CRL> getCrls(CRLSelector selector)
                                  throws CertStoreException
Returns a collection of CRLs that match the specified selector. If no CRLs match the selector, an empty Collection is returned.

Parameters:
selector - A CRLSelector used to select which CRLs should be returned.
Returns:
A collection of CRLs that match the specified selector.
Throws:
CertStoreException - Thrown if an exception occurs.
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:22
Copyright (c) 2002-2007 Ergon Informatik AG