use of org.gluu.config.oxauth.WebKeysSettings in project oxTrust by GluuFederation.
the class UpdateOrganizationAction method saveWebKeySettings.
public void saveWebKeySettings() {
String configurationDn = configurationFactory.getConfigurationDn();
ldapOxAuthConfiguration = organizationService.getOxAuthSetting(configurationDn);
WebKeysSettings oldwebKeysSettings = ldapOxAuthConfiguration.getOxWebKeysSettings();
if ((oldwebKeysSettings != null) && !oldwebKeysSettings.equals(webKeysSettings)) {
webKeysSettings.setUpdateAt(new Date());
ldapOxAuthConfiguration.setOxWebKeysSettings(webKeysSettings);
organizationService.saveLdapOxAuthConfiguration(ldapOxAuthConfiguration);
}
}
use of org.gluu.config.oxauth.WebKeysSettings in project oxTrust by GluuFederation.
the class UpdateOrganizationAction method initOxAuthSetting.
private void initOxAuthSetting() {
String configurationDn = configurationFactory.getConfigurationDn();
try {
ldapOxAuthConfiguration = organizationService.getOxAuthSetting(configurationDn);
this.webKeysSettings = ldapOxAuthConfiguration.getOxWebKeysSettings();
if (webKeysSettings == null) {
webKeysSettings = new WebKeysSettings();
}
} catch (BasePersistenceException ex) {
log.error("Failed to load configuration from LDAP");
}
}
Aggregations