Class LdapCertificateRepo
- java.lang.Object
-
- org.apache.cxf.xkms.x509.repo.ldap.LdapCertificateRepo
-
- All Implemented Interfaces:
org.apache.cxf.xkms.x509.repo.CertificateRepo
public class LdapCertificateRepo extends Object implements org.apache.cxf.xkms.x509.repo.CertificateRepo
-
-
Constructor Summary
Constructors Constructor Description LdapCertificateRepo(LdapSearch ldapSearch, LdapSchemaConfig ldapConfig, String rootDN)
-
Method Summary
-
-
-
Constructor Detail
-
LdapCertificateRepo
public LdapCertificateRepo(LdapSearch ldapSearch, LdapSchemaConfig ldapConfig, String rootDN)
- Parameters:
ldapSearch
-ldapConfig
-rootDN
- rootDN of the LDAP tree
-
-
Method Detail
-
getTrustedCaCerts
public List<X509Certificate> getTrustedCaCerts()
- Specified by:
getTrustedCaCerts
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
getCaCerts
public List<X509Certificate> getCaCerts()
- Specified by:
getCaCerts
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
getCRLs
public List<X509CRL> getCRLs()
- Specified by:
getCRLs
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
getCertificatesFromLdap
protected List<X509Certificate> getCertificatesFromLdap(String tmpRootDN, String tmpFilter, String tmpAttrName)
-
getCRLsFromLdap
protected List<X509CRL> getCRLsFromLdap(String tmpRootDN, String tmpFilter, String tmpAttrName)
-
saveCertificate
protected void saveCertificate(X509Certificate cert, String dn, Map<String,String> appAttrs)
-
addConstantAttributes
protected void addConstantAttributes(String names, String values, Attributes attribs)
-
findBySubjectDn
public X509Certificate findBySubjectDn(String id)
- Specified by:
findBySubjectDn
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
findByServiceName
public X509Certificate findByServiceName(String serviceName)
- Specified by:
findByServiceName
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
findByEndpoint
public X509Certificate findByEndpoint(String endpoint)
- Specified by:
findByEndpoint
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
getCertificateForDn
protected X509Certificate getCertificateForDn(String dn) throws NamingException
- Throws:
NamingException
-
getCertificateForUIDAttr
protected X509Certificate getCertificateForUIDAttr(String uid) throws NamingException
- Throws:
NamingException
-
findByIssuerSerial
public X509Certificate findByIssuerSerial(String issuer, String serial)
- Specified by:
findByIssuerSerial
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
getCert
protected X509Certificate getCert(Attribute attr)
-
saveCertificate
public void saveCertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType key)
- Specified by:
saveCertificate
in interfaceorg.apache.cxf.xkms.x509.repo.CertificateRepo
-
-