Apache CXF API

org.apache.cxf.xkms.x509.repo.ldap
Class LdapCertificateRepo

java.lang.Object
  extended by org.apache.cxf.xkms.x509.repo.ldap.LdapCertificateRepo
All Implemented Interfaces:
CertificateRepo

public class LdapCertificateRepo
extends Object
implements CertificateRepo


Constructor Summary
LdapCertificateRepo(LdapSearch ldapSearch, LdapSchemaConfig ldapConfig, String rootDN)
           
 
Method Summary
 X509Certificate findByEndpoint(String endpoint)
           
 X509Certificate findByIssuerSerial(String issuer, String serial)
           
 X509Certificate findByServiceName(String serviceName)
           
 X509Certificate findBySubjectDn(String id)
           
 List<X509Certificate> getCaCerts()
           
 List<X509CRL> getCRLs()
           
 List<X509Certificate> getTrustedCaCerts()
           
 void saveCertificate(X509Certificate cert, UseKeyWithType key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapCertificateRepo

public LdapCertificateRepo(LdapSearch ldapSearch,
                           LdapSchemaConfig ldapConfig,
                           String rootDN)
Parameters:
ldapSearch -
rootDN - rootDN of the LDAP tree
trustedAuthorityFilter -
intermediateFilter -
attrName -
Method Detail

getTrustedCaCerts

public List<X509Certificate> getTrustedCaCerts()
Specified by:
getTrustedCaCerts in interface CertificateRepo

getCaCerts

public List<X509Certificate> getCaCerts()
Specified by:
getCaCerts in interface CertificateRepo

getCRLs

public List<X509CRL> getCRLs()
Specified by:
getCRLs in interface CertificateRepo

findBySubjectDn

public X509Certificate findBySubjectDn(String id)
Specified by:
findBySubjectDn in interface CertificateRepo

findByServiceName

public X509Certificate findByServiceName(String serviceName)
Specified by:
findByServiceName in interface CertificateRepo

findByEndpoint

public X509Certificate findByEndpoint(String endpoint)
Specified by:
findByEndpoint in interface CertificateRepo

findByIssuerSerial

public X509Certificate findByIssuerSerial(String issuer,
                                          String serial)
Specified by:
findByIssuerSerial in interface CertificateRepo

saveCertificate

public void saveCertificate(X509Certificate cert,
                            UseKeyWithType key)
Specified by:
saveCertificate in interface CertificateRepo

Apache CXF API

Apache CXF