diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-08-25 15:46:00 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-08-25 15:46:00 +0200 |
commit | f376278d4d764475d2d806ef537ffcfa2f729997 (patch) | |
tree | c40dfad42ceb512eb2ca1e77d832168384808cea /id/server/idserverlib/src/main/java/at/gv/egovernment/moa | |
parent | 6ff682411e2318eb49bd84761be0b9f9d2fccbae (diff) | |
download | moa-id-spss-f376278d4d764475d2d806ef537ffcfa2f729997.tar.gz moa-id-spss-f376278d4d764475d2d806ef537ffcfa2f729997.tar.bz2 moa-id-spss-f376278d4d764475d2d806ef537ffcfa2f729997.zip |
remove space characters from configuration values
Diffstat (limited to 'id/server/idserverlib/src/main/java/at/gv/egovernment/moa')
3 files changed, 11 insertions, 11 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/PropertyBasedAuthConfigurationProvider.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/PropertyBasedAuthConfigurationProvider.java index 7418f2e35..cb9ac890d 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/PropertyBasedAuthConfigurationProvider.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/PropertyBasedAuthConfigurationProvider.java @@ -180,7 +180,7 @@ public class PropertyBasedAuthConfigurationProvider extends ConfigurationProvide @Override public String getConfigurationWithKey(String key) { try { - return configuration.getStringValue(key); + return configuration.getStringValue(key).trim(); } catch (at.gv.egiz.components.configuration.api.ConfigurationException e) { return null; diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/oauth20/OAuth20Configuration.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/oauth20/OAuth20Configuration.java index 8eddd7833..e2ac97535 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/oauth20/OAuth20Configuration.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/oauth20/OAuth20Configuration.java @@ -62,15 +62,15 @@ public class OAuth20Configuration { } public String getJWTKeyStorePassword() { - return props.getProperty(JWT_KEYSTORE_PASSWORD); + return props.getProperty(JWT_KEYSTORE_PASSWORD).trim(); } public String getJWTKeyName() { - return props.getProperty(JWT_KEY_NAME); + return props.getProperty(JWT_KEY_NAME).trim(); } public String getJWTKeyPassword() { - return props.getProperty(JWT_KEY_PASSWORD); + return props.getProperty(JWT_KEY_PASSWORD).trim(); } } diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/config/PVPConfiguration.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/config/PVPConfiguration.java index 87a63a8a0..dc3b787e4 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/config/PVPConfiguration.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/config/PVPConfiguration.java @@ -165,31 +165,31 @@ public class PVPConfiguration { } public String getIDPKeyStorePassword() { - return props.getProperty(IDP_KS_PASS); + return props.getProperty(IDP_KS_PASS).trim(); } public String getIDPKeyAliasMetadata() { - return props.getProperty(IDP_KEYALIASMETADATA); + return props.getProperty(IDP_KEYALIASMETADATA).trim(); } public String getIDPKeyPasswordMetadata() { - return props.getProperty(IDP_KEY_PASSMETADATA); + return props.getProperty(IDP_KEY_PASSMETADATA).trim(); } public String getIDPKeyAliasAssertionSign() { - return props.getProperty(IDP_KEYALIASASSERTION); + return props.getProperty(IDP_KEYALIASASSERTION).trim(); } public String getIDPKeyPasswordAssertionSign() { - return props.getProperty(IDP_KEY_PASSASSERTION); + return props.getProperty(IDP_KEY_PASSASSERTION).trim(); } public String getIDPKeyAliasAssertionEncryption() { - return props.getProperty(IDP_KEYALIASASSERTION); + return props.getProperty(IDP_KEYALIASASSERTION).trim(); } public String getIDPKeyPasswordAssertionEncryption() { - return props.getProperty(IDP_KEY_PASSASSERTION); + return props.getProperty(IDP_KEY_PASSASSERTION).trim(); } public String getIDPIssuerName() throws ConfigurationException { |