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);
}
Aggregations