Repository: cxf Updated Branches: refs/heads/master f4bc11621 -> 584a21740
#CXF-6859: logging and exception handling improvement Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/584a2174 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/584a2174 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/584a2174 Branch: refs/heads/master Commit: 584a217406757a2994c27cfb3d4ef38323aec40f Parents: f4bc116 Author: Andrei Shakirin <[email protected]> Authored: Wed Apr 6 20:59:26 2016 +0200 Committer: Andrei Shakirin <[email protected]> Committed: Wed Apr 6 20:59:26 2016 +0200 ---------------------------------------------------------------------- .../cxf/ws/security/trust/STSSamlAssertionValidator.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/584a2174/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java index 8805df1..33236e3 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSSamlAssertionValidator.java @@ -19,6 +19,10 @@ package org.apache.cxf.ws.security.trust; +import java.util.logging.Level; +import java.util.logging.Logger; + +import org.apache.cxf.common.logging.LogUtils; import org.apache.wss4j.common.ext.WSSecurityException; import org.apache.wss4j.common.saml.SamlAssertionWrapper; import org.apache.wss4j.dom.handler.RequestData; @@ -32,6 +36,7 @@ import org.apache.wss4j.dom.validate.SamlAssertionValidator; * for validation. */ public class STSSamlAssertionValidator extends SamlAssertionValidator { + private static final Logger LOG = LogUtils.getL7dLogger(STSSamlAssertionValidator.class); private boolean trustVerificationSucceeded; @@ -64,6 +69,7 @@ public class STSSamlAssertionValidator extends SamlAssertionValidator { trustVerificationSucceeded = true; return credential; } catch (WSSecurityException ex) { + LOG.log(Level.WARNING, "Trust verification of SAML assertion failed: " + ex.getMessage(), ex); trustVerificationSucceeded = false; return null; }
