Search in sources :

Example 1 with LdapEntryManagerFactory

use of org.gluu.persist.ldap.impl.LdapEntryManagerFactory in project oxTrust by GluuFederation.

the class Configuration method createLdapEntryManager.

private LdapEntryManager createLdapEntryManager() {
    Properties connectionProperties = (Properties) this.ldapConfiguration.getProperties();
    Properties decryptedConnectionProperties = PropertiesDecrypter.decryptProperties(connectionProperties, this.cryptoConfigurationSalt);
    LdapEntryManagerFactory ldapEntryManagerFactory = new LdapEntryManagerFactory();
    LdapEntryManager ldapEntryManager = ldapEntryManagerFactory.createEntryManager(decryptedConnectionProperties);
    logger.debug("Created LdapEntryManager: {}", ldapEntryManager);
    return ldapEntryManager;
}
Also used : LdapEntryManager(org.gluu.persist.ldap.impl.LdapEntryManager) Properties(java.util.Properties) LdapEntryManagerFactory(org.gluu.persist.ldap.impl.LdapEntryManagerFactory)

Example 2 with LdapEntryManagerFactory

use of org.gluu.persist.ldap.impl.LdapEntryManagerFactory in project oxCore by GluuFederation.

the class LdapSampleEntryManager method createLdapEntryManager.

public LdapEntryManager createLdapEntryManager() {
    LdapEntryManagerFactory ldapEntryManagerFactory = new LdapEntryManagerFactory();
    Properties connectionProperties = getSampleConnectionProperties();
    LdapEntryManager ldapEntryManager = ldapEntryManagerFactory.createEntryManager(connectionProperties);
    LOG.debug("Created LdapEntryManager: " + ldapEntryManager);
    return ldapEntryManager;
}
Also used : LdapEntryManager(org.gluu.persist.ldap.impl.LdapEntryManager) Properties(java.util.Properties) LdapEntryManagerFactory(org.gluu.persist.ldap.impl.LdapEntryManagerFactory)

Aggregations

Properties (java.util.Properties)2 LdapEntryManager (org.gluu.persist.ldap.impl.LdapEntryManager)2 LdapEntryManagerFactory (org.gluu.persist.ldap.impl.LdapEntryManagerFactory)2