use of org.gluu.model.ldap.GluuLdapConfiguration in project oxTrust by GluuFederation.
the class ConfigureCacheRefreshAction method validateLists.
private boolean validateLists() {
boolean result = true;
for (GluuLdapConfiguration sourceConfig : this.cacheRefreshConfiguration.getSourceConfigs()) {
result &= validateList(sourceConfig, "Source", true);
}
result &= validateList(this.cacheRefreshConfiguration.getInumConfig(), "Inum", true);
if (CacheRefreshUpdateMethod.VDS.equals(cacheRefreshConfiguration.getUpdateMethod())) {
result &= validateList(this.cacheRefreshConfiguration.getTargetConfig(), "Target", false);
}
result &= validateList(this.cacheRefreshConfiguration.getKeyAttributes(), "Key attribute");
result &= validateList(this.cacheRefreshConfiguration.getKeyObjectClasses(), "Object class");
result &= validateList(this.cacheRefreshConfiguration.getSourceAttributes(), "Source attribute");
return result;
}
use of org.gluu.model.ldap.GluuLdapConfiguration in project oxAuth by GluuFederation.
the class AppInitializer method prepareAuthConnectionProperties.
private List<Properties> prepareAuthConnectionProperties(List<GluuLdapConfiguration> persistenceAuthConfigs, String persistenceType) {
List<Properties> result = new ArrayList<Properties>();
// Prepare connection providers per LDAP authentication configuration
for (GluuLdapConfiguration persistenceAuthConfig : persistenceAuthConfigs) {
Properties decrypytedConnectionProperties = prepareAuthConnectionProperties(persistenceAuthConfig, persistenceType);
result.add(decrypytedConnectionProperties);
}
return result;
}
use of org.gluu.model.ldap.GluuLdapConfiguration in project oxAuth by GluuFederation.
the class AppInitializer method loadPersistenceAuthConfigs.
private List<GluuLdapConfiguration> loadPersistenceAuthConfigs(GluuConfiguration configuration) {
List<GluuLdapConfiguration> persistenceAuthConfigs = new ArrayList<GluuLdapConfiguration>();
List<oxIDPAuthConf> persistenceIdpAuthConfigs = loadLdapIdpAuthConfigs(configuration);
if (persistenceIdpAuthConfigs == null) {
return persistenceAuthConfigs;
}
for (oxIDPAuthConf persistenceIdpAuthConfig : persistenceIdpAuthConfigs) {
GluuLdapConfiguration persistenceAuthConfig = persistenceIdpAuthConfig.getConfig();
if ((persistenceAuthConfig != null) && persistenceAuthConfig.isEnabled()) {
persistenceAuthConfigs.add(persistenceAuthConfig);
}
}
return persistenceAuthConfigs;
}
Aggregations