Repository: cxf Updated Branches: refs/heads/3.1.x-fixes 194f9cd98 -> a61399635
#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/70b32b7e Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/70b32b7e Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/70b32b7e Branch: refs/heads/3.1.x-fixes Commit: 70b32b7e8f672edfbcce459b4f6276efb1c56285 Parents: 194f9cd Author: Andrei Shakirin <[email protected]> Authored: Wed Apr 6 20:59:26 2016 +0200 Committer: Daniel Kulp <[email protected]> Committed: Mon May 23 13:06:30 2016 -0400 ---------------------------------------------------------------------- .../cxf/ws/security/trust/STSSamlAssertionValidator.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/70b32b7e/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; }
