org.openpermis.cert.repository
Class CertStoreCertificateRepository

java.lang.Object
  extended by org.openpermis.cert.repository.CertStoreCertificateRepository
All Implemented Interfaces:
CertificateRepository

public class CertStoreCertificateRepository
extends Object
implements CertificateRepository

This certificate repository is backed the specified CertStore object. Different crypto providers offer different certificate stores such as memory based and LDAP directory based certificate stores.

Since:
0.3.0

Constructor Summary
CertStoreCertificateRepository(CertStore certStore)
          Creates an instance of this certificate repository implementation given the specified CertStore object.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertStoreCertificateRepository

public CertStoreCertificateRepository(CertStore certStore)
Creates an instance of this certificate repository implementation given the specified CertStore object.

Parameters:
certStore - The certificate store object. Must not be null.
Since:
0.3.0
Method Detail

getCertificates

public 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.

Specified by:
getCertificates in interface CertificateRepository
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

public 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.

Specified by:
getCrls in interface CertificateRepository
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


OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG