From 0e60708e5915eb858d5931c45f807329bd365c11 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Sun, 9 Jan 2022 21:30:56 +0100 Subject: chore(SAML2): update implementation to remove usage of deprecated openSAML4.x API --- .../at/gv/egiz/eaaf/modules/pvp2/sp/impl/PvpAuthnRequestBuilder.java | 4 ++-- .../eaaf/modules/pvp2/sp/impl/utils/AssertionAttributeExtractor.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'eaaf_modules/eaaf_module_pvp2_sp/src') diff --git a/eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/PvpAuthnRequestBuilder.java b/eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/PvpAuthnRequestBuilder.java index c48a0fd4..bac90451 100644 --- a/eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/PvpAuthnRequestBuilder.java +++ b/eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/PvpAuthnRequestBuilder.java @@ -185,7 +185,7 @@ public class PvpAuthnRequestBuilder { final AuthnContextClassRef authnClassRef = Saml2Utils.createSamlObject(AuthnContextClassRef.class); - authnClassRef.setAuthnContextClassRef(config.getAuthnContextClassRef()); + authnClassRef.setURI(config.getAuthnContextClassRef()); if (config.getAuthnContextComparison() == null) { reqAuthContext.setComparison(AuthnContextComparisonTypeEnumeration.MINIMUM); @@ -244,7 +244,7 @@ public class PvpAuthnRequestBuilder { if (StringUtils.isNotEmpty(config.getScopeRequesterId())) { final Scoping scope = Saml2Utils.createSamlObject(Scoping.class); final RequesterID requesterId = Saml2Utils.createSamlObject(RequesterID.class); - requesterId.setRequesterID(config.getScopeRequesterId()); + requesterId.setURI(config.getScopeRequesterId()); scope.getRequesterIDs().add(requesterId); authReq.setScoping(scope); diff --git a/eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/utils/AssertionAttributeExtractor.java b/eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/utils/AssertionAttributeExtractor.java index d59012a5..f87096fb 100644 --- a/eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/utils/AssertionAttributeExtractor.java +++ b/eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/utils/AssertionAttributeExtractor.java @@ -265,8 +265,8 @@ public class AssertionAttributeExtractor { && authn.getAuthnContext().getAuthnContextClassRef() != null) { final AuthnContextClassRef qaaClass = authn.getAuthnContext().getAuthnContextClassRef(); - if (StringUtils.isNotEmpty(qaaClass.getAuthnContextClassRef())) { - return qaaClass.getAuthnContextClassRef(); + if (StringUtils.isNotEmpty(qaaClass.getURI())) { + return qaaClass.getURI(); } else { throw new AssertionAttributeExtractorExeption("AuthnContextClassRef (QAALevel)"); } -- cgit v1.2.3