summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_pvp2_sp/src
diff options
context:
space:
mode:
authorThomas <>2022-01-09 21:30:56 +0100
committerThomas <>2022-01-09 21:30:56 +0100
commit0e60708e5915eb858d5931c45f807329bd365c11 (patch)
tree6d5e5a305e8b9b7e969fb051acffd811379709b6 /eaaf_modules/eaaf_module_pvp2_sp/src
parente28540643df720d0f3ea2d00c8bee8f0beeebce8 (diff)
downloadEAAF-Components-0e60708e5915eb858d5931c45f807329bd365c11.tar.gz
EAAF-Components-0e60708e5915eb858d5931c45f807329bd365c11.tar.bz2
EAAF-Components-0e60708e5915eb858d5931c45f807329bd365c11.zip
chore(SAML2): update implementation to remove usage of deprecated openSAML4.x API
Diffstat (limited to 'eaaf_modules/eaaf_module_pvp2_sp/src')
-rw-r--r--eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/PvpAuthnRequestBuilder.java4
-rw-r--r--eaaf_modules/eaaf_module_pvp2_sp/src/main/java/at/gv/egiz/eaaf/modules/pvp2/sp/impl/utils/AssertionAttributeExtractor.java4
2 files changed, 4 insertions, 4 deletions
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)");
}