cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: Minor improvement to SAML checking
Date Thu, 24 Apr 2014 15:05:23 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 603c47179 -> 69658738f


Minor improvement to SAML checking


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/69658738
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/69658738
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/69658738

Branch: refs/heads/2.7.x-fixes
Commit: 69658738f42a1ed56e3f969ce4b2556c34114d6e
Parents: 603c471
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Apr 24 16:05:00 2014 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Apr 24 16:05:00 2014 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/ws/security/wss4j/SAMLUtils.java    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/69658738/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SAMLUtils.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SAMLUtils.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SAMLUtils.java
index d8b971b..a5ac47a 100755
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SAMLUtils.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/SAMLUtils.java
@@ -247,6 +247,10 @@ public final class SAMLUtils {
             return true;
         }
         
+        if (subjectPublicKey == null && subjectCerts != null && subjectCerts.length
> 0) {
+            subjectPublicKey = subjectCerts[0].getPublicKey();
+        }
+
         //
         // Now try the message-level signatures
         //


Mime
View raw message