aboutsummaryrefslogtreecommitdiff
path: root/connector_lib/src/main/java
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-12-14 12:14:39 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-12-14 12:14:39 +0100
commite50146d903bde90b9d90dd41f35b0652ff8345ae (patch)
tree37f9643f9860639097495b9cb00818a2264a91f5 /connector_lib/src/main/java
parent583c57b9eb692c7db34b618116294796e527eafe (diff)
downloadNational_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/java')
-rw-r--r--connector_lib/src/main/java/at/asitplus/eidas/specific/connector/config/ServiceProviderConfiguration.java4
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()) {