diff options
| author | Thomas <> | 2022-12-19 14:28:16 +0100 | 
|---|---|---|
| committer | Thomas <> | 2022-12-19 14:28:16 +0100 | 
| commit | b13a7517ea0f625d9b24b8d1ca709c8224e9c4d4 (patch) | |
| tree | cb29b092a3338e91410d97210e81f690eb40a26c /eaaf_modules/eaaf_module_pvp2_idp/src | |
| parent | 31a4bcf1651cff3e27e35a34aa67effb33996dcb (diff) | |
| download | EAAF-Components-b13a7517ea0f625d9b24b8d1ca709c8224e9c4d4.tar.gz EAAF-Components-b13a7517ea0f625d9b24b8d1ca709c8224e9c4d4.tar.bz2 EAAF-Components-b13a7517ea0f625d9b24b8d1ca709c8224e9c4d4.zip | |
feat(core): support not-notified eIDAS LoA
Diffstat (limited to 'eaaf_modules/eaaf_module_pvp2_idp/src')
| -rw-r--r-- | eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java b/eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java index 261f7b2b..bbe1d95f 100644 --- a/eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java +++ b/eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java @@ -22,8 +22,10 @@ package at.gv.egiz.eaaf.modules.pvp2.idp.impl.builder;  import java.security.MessageDigest;  import java.time.Instant;  import java.util.ArrayList; +import java.util.HashSet;  import java.util.Iterator;  import java.util.List; +import java.util.Set;  import javax.naming.ConfigurationException; @@ -159,7 +161,7 @@ public class Pvp2AssertionBuilder implements PvpConstants {            reqAuthnContext.getAuthnContextClassRefs();        // get matching mode from authn. request       -      String loaMatchingMode = pendingReq.getServiceProviderConfiguration().getLoAMatchingMode(); +      String loaMatchingMode = oaParam.getLoAMatchingMode();        if (StringUtils.isEmpty(loaMatchingMode)) {          loaMatchingMode = EaafConstants.EIDAS_LOA_MATCHING_MINIMUM; @@ -172,7 +174,9 @@ public class Pvp2AssertionBuilder implements PvpConstants {          authnContextClassRef.setURI(authData.getEidasQaaLevel());        } else { -        final List<String> eidasLoaFromRequest = new ArrayList<>(); +        final Set<String> eidasLoaFromRequest = new HashSet<>(); +        eidasLoaFromRequest.addAll(oaParam.getRequiredLoA()); +                  for (final AuthnContextClassRef authnClassRef : reqAuthnContextClassRefIt) {            final String qaa_uri = authnClassRef.getURI(); | 
