public class LdapCertificateRepo extends Object implements CertificateRepo
| Constructor and Description |
|---|
LdapCertificateRepo(LdapSearch ldapSearch,
LdapSchemaConfig ldapConfig,
String rootDN) |
public LdapCertificateRepo(LdapSearch ldapSearch, LdapSchemaConfig ldapConfig, String rootDN)
ldapSearch - ldapConfig - rootDN - rootDN of the LDAP treepublic List<X509Certificate> getTrustedCaCerts()
getTrustedCaCerts in interface CertificateRepopublic List<X509Certificate> getCaCerts()
getCaCerts in interface CertificateRepopublic List<X509CRL> getCRLs()
getCRLs in interface CertificateRepoprotected List<X509Certificate> getCertificatesFromLdap(String tmpRootDN, String tmpFilter, String tmpAttrName)
protected List<X509CRL> getCRLsFromLdap(String tmpRootDN, String tmpFilter, String tmpAttrName)
protected void saveCertificate(X509Certificate cert, String dn, Map<String,String> appAttrs)
protected void addConstantAttributes(String names, String values, Attributes attribs)
public X509Certificate findBySubjectDn(String id)
findBySubjectDn in interface CertificateRepopublic X509Certificate findByServiceName(String serviceName)
findByServiceName in interface CertificateRepopublic X509Certificate findByEndpoint(String endpoint)
findByEndpoint in interface CertificateRepoprotected X509Certificate getCertificateForDn(String dn) throws NamingException
NamingExceptionprotected X509Certificate getCertificateForUIDAttr(String uid) throws NamingException
NamingExceptionpublic X509Certificate findByIssuerSerial(String issuer, String serial)
findByIssuerSerial in interface CertificateRepoprotected X509Certificate getCert(Attribute attr)
public void saveCertificate(X509Certificate cert, UseKeyWithType key)
saveCertificate in interface CertificateRepoApache CXF