diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-12-14 12:14:39 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-12-14 12:14:39 +0100 |
commit | e50146d903bde90b9d90dd41f35b0652ff8345ae (patch) | |
tree | 37f9643f9860639097495b9cb00818a2264a91f5 /connector_lib/src/main | |
parent | 583c57b9eb692c7db34b618116294796e527eafe (diff) | |
download | National_eIDAS_Gateway-e50146d903bde90b9d90dd41f35b0652ff8345ae.tar.gz National_eIDAS_Gateway-e50146d903bde90b9d90dd41f35b0652ff8345ae.tar.bz2 National_eIDAS_Gateway-e50146d903bde90b9d90dd41f35b0652ff8345ae.zip |
add some more jUnit tests
Diffstat (limited to 'connector_lib/src/main')
-rw-r--r-- | connector_lib/src/main/java/at/asitplus/eidas/specific/connector/config/ServiceProviderConfiguration.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/config/ServiceProviderConfiguration.java b/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/config/ServiceProviderConfiguration.java index 6f7eace3..362d0244 100644 --- a/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/config/ServiceProviderConfiguration.java +++ b/connector_lib/src/main/java/at/asitplus/eidas/specific/connector/config/ServiceProviderConfiguration.java @@ -57,12 +57,14 @@ public class ServiceProviderConfiguration extends SpConfigurationImpl { } + @Override public boolean hasBaseIdTransferRestriction() { final Boolean spConfigPolicy = isConfigurationValue( MsEidasNodeConstants.PROP_CONFIG_SP_POLICY_BASEIDTRANSFER_RESTRICTION); - if (spConfigPolicy != null) { + if (spConfigPolicy) { return spConfigPolicy; + } else { log.trace("SP configuration defines no baseID transfer restriction. Enforce default policy ..."); for (final String el : getTargetsWithNoBaseIdTransferRestriction()) { |