You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2022/03/23 11:13:09 UTC

[cxf] branch master updated: Use constant in SAMLUtils

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e90f53  Use constant in SAMLUtils
1e90f53 is described below

commit 1e90f53f720b76c2dbac910e58ef0b291f98c032
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Wed Mar 23 11:12:50 2022 +0000

    Use constant in SAMLUtils
---
 .../main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rt/security-saml/src/main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java b/rt/security-saml/src/main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java
index bd57e53..396134e 100644
--- a/rt/security-saml/src/main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java
+++ b/rt/security-saml/src/main/java/org/apache/cxf/rt/security/saml/utils/SAMLUtils.java
@@ -162,8 +162,8 @@ public final class SAMLUtils {
                     audiences.add((String)msg.get(org.apache.cxf.message.Message.REQUEST_URI));
                 }
 
-                if (msg.getContextualProperty("javax.xml.ws.wsdl.service") != null) {
-                    audiences.add(msg.getContextualProperty("javax.xml.ws.wsdl.service").toString());
+                if (msg.getContextualProperty(Message.WSDL_SERVICE) != null) {
+                    audiences.add(msg.getContextualProperty(Message.WSDL_SERVICE).toString());
                 }
             }
             return audiences;