Class LdapCertificateRepo
java.lang.Object
org.apache.cxf.xkms.x509.repo.ldap.LdapCertificateRepo
- All Implemented Interfaces:
CertificateRepo
-
Constructor Summary
ConstructorsConstructorDescriptionLdapCertificateRepo(LdapSearch ldapSearch, LdapSchemaConfig ldapConfig, String rootDN) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddConstantAttributes(String names, String values, Attributes attribs) findByEndpoint(String endpoint) findByIssuerSerial(String issuer, String serial) findByServiceName(String serviceName) protected X509Certificateprotected X509Certificateprotected X509Certificateprotected List<X509Certificate>getCertificatesFromLdap(String tmpRootDN, String tmpFilter, String tmpAttrName) getCRLs()getCRLsFromLdap(String tmpRootDN, String tmpFilter, String tmpAttrName) protected Stringprotected voidsaveCertificate(X509Certificate cert, String dn, Map<String, String> appAttrs) voidsaveCertificate(X509Certificate cert, UseKeyWithType key)
-
Constructor Details
-
LdapCertificateRepo
- Parameters:
ldapSearch-ldapConfig-rootDN- rootDN of the LDAP tree
-
-
Method Details
-
getTrustedCaCerts
- Specified by:
getTrustedCaCertsin interfaceCertificateRepo
-
getCaCerts
- Specified by:
getCaCertsin interfaceCertificateRepo
-
getCRLs
- Specified by:
getCRLsin interfaceCertificateRepo
-
getCertificatesFromLdap
protected List<X509Certificate> getCertificatesFromLdap(String tmpRootDN, String tmpFilter, String tmpAttrName) -
getCRLsFromLdap
-
saveCertificate
-
addConstantAttributes
-
findBySubjectDn
- Specified by:
findBySubjectDnin interfaceCertificateRepo
-
findByServiceName
- Specified by:
findByServiceNamein interfaceCertificateRepo
-
findByEndpoint
- Specified by:
findByEndpointin interfaceCertificateRepo
-
getDnForIdentifier
-
getCertificateForDn
- Throws:
NamingException
-
getCertificateForUIDAttr
- Throws:
NamingException
-
findByIssuerSerial
- Specified by:
findByIssuerSerialin interfaceCertificateRepo
-
getCert
-
saveCertificate
- Specified by:
saveCertificatein interfaceCertificateRepo
-