Class LdapCertificateRepo
- java.lang.Object
-
- org.apache.cxf.xkms.x509.repo.ldap.LdapCertificateRepo
-
- All Implemented Interfaces:
CertificateRepo
public class LdapCertificateRepo extends Object implements 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:
getTrustedCaCertsin interfaceCertificateRepo
-
getCaCerts
public List<X509Certificate> getCaCerts()
- Specified by:
getCaCertsin interfaceCertificateRepo
-
getCRLs
public List<X509CRL> getCRLs()
- Specified by:
getCRLsin interfaceCertificateRepo
-
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:
findBySubjectDnin interfaceCertificateRepo
-
findByServiceName
public X509Certificate findByServiceName(String serviceName)
- Specified by:
findByServiceNamein interfaceCertificateRepo
-
findByEndpoint
public X509Certificate findByEndpoint(String endpoint)
- Specified by:
findByEndpointin interfaceCertificateRepo
-
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:
findByIssuerSerialin interfaceCertificateRepo
-
getCert
protected X509Certificate getCert(Attribute attr)
-
saveCertificate
public void saveCertificate(X509Certificate cert, UseKeyWithType key)
- Specified by:
saveCertificatein interfaceCertificateRepo
-
-