org.openpermis.cert
Class CertStoreCertificateRepository
java.lang.Object
org.openpermis.cert.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
certStore
private CertStore certStore
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
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 CertSelector
used 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
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:14:59
Copyright (c) 2002-2007 Ergon Informatik AG