public class LdapCertificateRepo extends Object implements org.apache.cxf.xkms.x509.repo.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 org.apache.cxf.xkms.x509.repo.CertificateRepopublic List<X509Certificate> getCaCerts()
getCaCerts in interface org.apache.cxf.xkms.x509.repo.CertificateRepopublic List<X509CRL> getCRLs()
getCRLs in interface org.apache.cxf.xkms.x509.repo.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 org.apache.cxf.xkms.x509.repo.CertificateRepopublic X509Certificate findByServiceName(String serviceName)
findByServiceName in interface org.apache.cxf.xkms.x509.repo.CertificateRepopublic X509Certificate findByEndpoint(String endpoint)
findByEndpoint in interface org.apache.cxf.xkms.x509.repo.CertificateRepoprotected X509Certificate getCertificateForDn(String dn) throws NamingException
NamingExceptionprotected X509Certificate getCertificateForUIDAttr(String uid) throws NamingException
NamingExceptionpublic X509Certificate findByIssuerSerial(String issuer, String serial)
findByIssuerSerial in interface org.apache.cxf.xkms.x509.repo.CertificateRepoprotected X509Certificate getCert(Attribute attr)
public void saveCertificate(X509Certificate cert, org.apache.cxf.xkms.model.xkms.UseKeyWithType key)
saveCertificate in interface org.apache.cxf.xkms.x509.repo.CertificateRepoApache CXF