Search in sources :

Example 1 with LdapSchemaConfig

use of org.apache.cxf.xkms.x509.repo.ldap.LdapSchemaConfig in project cxf by apache.

the class LDAPCertificateRepoTest method createLdapCertificateRepo.

private CertificateRepo createLdapCertificateRepo() throws CertificateException {
    LdapSearch ldapSearch = new LdapSearch("ldap://localhost:" + super.getLdapServer().getPort(), "UID=admin,DC=example,DC=com", "ldap_su", 2);
    LdapSchemaConfig ldapSchemaConfig = new LdapSchemaConfig();
    ldapSchemaConfig.setAttrCrtBinary("userCertificate");
    return new LdapCertificateRepo(ldapSearch, ldapSchemaConfig, ROOT_DN);
}
Also used : LdapSchemaConfig(org.apache.cxf.xkms.x509.repo.ldap.LdapSchemaConfig) LdapSearch(org.apache.cxf.xkms.x509.repo.ldap.LdapSearch) LdapCertificateRepo(org.apache.cxf.xkms.x509.repo.ldap.LdapCertificateRepo)

Aggregations

LdapCertificateRepo (org.apache.cxf.xkms.x509.repo.ldap.LdapCertificateRepo)1 LdapSchemaConfig (org.apache.cxf.xkms.x509.repo.ldap.LdapSchemaConfig)1 LdapSearch (org.apache.cxf.xkms.x509.repo.ldap.LdapSearch)1