Class LdapCertificateRepo

  • All Implemented Interfaces:
    org.apache.cxf.xkms.x509.repo.CertificateRepo

    public class LdapCertificateRepo
    extends Object
    implements org.apache.cxf.xkms.x509.repo.CertificateRepo
    • 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:
        getTrustedCaCerts in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
      • getCaCerts

        public List<X509Certificate> getCaCerts()
        Specified by:
        getCaCerts in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
      • getCRLs

        public List<X509CRL> getCRLs()
        Specified by:
        getCRLs in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
      • addConstantAttributes

        protected void addConstantAttributes​(String names,
                                             String values,
                                             Attributes attribs)
      • findBySubjectDn

        public X509Certificate findBySubjectDn​(String id)
        Specified by:
        findBySubjectDn in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
      • findByServiceName

        public X509Certificate findByServiceName​(String serviceName)
        Specified by:
        findByServiceName in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
      • findByEndpoint

        public X509Certificate findByEndpoint​(String endpoint)
        Specified by:
        findByEndpoint in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
      • getDnForIdentifier

        protected String getDnForIdentifier​(String id)
      • findByIssuerSerial

        public X509Certificate findByIssuerSerial​(String issuer,
                                                  String serial)
        Specified by:
        findByIssuerSerial in interface org.apache.cxf.xkms.x509.repo.CertificateRepo
      • saveCertificate

        public void saveCertificate​(X509Certificate cert,
                                    org.apache.cxf.xkms.model.xkms.UseKeyWithType key)
        Specified by:
        saveCertificate in interface org.apache.cxf.xkms.x509.repo.CertificateRepo