diff options
author | Thomas <> | 2022-12-19 11:17:56 +0100 |
---|---|---|
committer | Thomas <> | 2022-12-19 11:17:56 +0100 |
commit | 31a4bcf1651cff3e27e35a34aa67effb33996dcb (patch) | |
tree | dcc0b14730fe0cd53fd3f0a41e27b19c90281de2 | |
parent | 650be990a22d2f5288cbab8853d648c28719ade4 (diff) | |
download | EAAF-Components-31a4bcf1651cff3e27e35a34aa67effb33996dcb.tar.gz EAAF-Components-31a4bcf1651cff3e27e35a34aa67effb33996dcb.tar.bz2 EAAF-Components-31a4bcf1651cff3e27e35a34aa67effb33996dcb.zip |
chore(pvp2): read LoA matching-mode from service-provider configuration
-rw-r--r-- | eaaf_modules/eaaf_module_pvp2_idp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/idp/impl/builder/Pvp2AssertionBuilder.java | 12 |
1 files changed, 6 insertions, 6 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 733301be..261f7b2b 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 @@ -158,13 +158,13 @@ public class Pvp2AssertionBuilder implements PvpConstants { final List<AuthnContextClassRef> reqAuthnContextClassRefIt = reqAuthnContext.getAuthnContextClassRefs(); - // get matching mode from authn. request - String loaMatchingMode = EaafConstants.EIDAS_LOA_MATCHING_MINIMUM; - if (reqAuthnContext.getComparison() != null - && StringUtils.isNotEmpty(reqAuthnContext.getComparison().toString())) { - loaMatchingMode = reqAuthnContext.getComparison().toString(); + // get matching mode from authn. request + String loaMatchingMode = pendingReq.getServiceProviderConfiguration().getLoAMatchingMode(); + if (StringUtils.isEmpty(loaMatchingMode)) { + loaMatchingMode = EaafConstants.EIDAS_LOA_MATCHING_MINIMUM; + } - + // get requested LoAs if (reqAuthnContextClassRefIt.size() == 0) { QaaLevelVerifier.verifyQaaLevel(authData.getEidasQaaLevel(), oaParam.getRequiredLoA(), |