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 2014/04/24 17:05:23 UTC
git commit: Minor improvement to SAML checking
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 <co...@apache.org>
Authored: Thu Apr 24 16:05:00 2014 +0100
Committer: Colm O hEigeartaigh <co...@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
//