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 CertificateRepo
public List<X509Certificate> getCaCerts()
getCaCerts
in interface CertificateRepo
public List<X509CRL> getCRLs()
getCRLs
in interface CertificateRepo
protected 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 CertificateRepo
public X509Certificate findByServiceName(String serviceName)
findByServiceName
in interface CertificateRepo
public X509Certificate findByEndpoint(String endpoint)
findByEndpoint
in interface CertificateRepo
protected X509Certificate getCertificateForDn(String dn) throws NamingException
NamingException
protected X509Certificate getCertificateForUIDAttr(String uid) throws NamingException
NamingException
public X509Certificate findByIssuerSerial(String issuer, String serial)
findByIssuerSerial
in interface CertificateRepo
protected X509Certificate getCert(Attribute attr)
public void saveCertificate(X509Certificate cert, UseKeyWithType key)
saveCertificate
in interface CertificateRepo
Apache CXF