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 2018/04/19 13:38:33 UTC
[cxf] 02/09: Removing printStackTrace from STS code
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
commit fd178bcf4805ca01d77afe07b70cfe93e1bc25c9
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Thu Apr 19 09:57:27 2018 +0100
Removing printStackTrace from STS code
---
.../java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java | 1 -
.../java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java | 3 ---
2 files changed, 4 deletions(-)
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java
index c3d1ac8..8b1d3f4 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/JWTTokenProvider.java
@@ -155,7 +155,6 @@ public class JWTTokenProvider implements TokenProvider {
LOG.fine("JWT Token successfully created");
return response;
} catch (Exception e) {
- e.printStackTrace();
LOG.log(Level.WARNING, "", e);
throw new STSException("Can't serialize JWT token", e, STSException.REQUEST_FAILED);
}
diff --git a/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java b/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java
index 2534489..f67bc96 100644
--- a/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java
+++ b/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/provider/SAMLProviderActAsTest.java
@@ -353,9 +353,6 @@ public class SAMLProviderActAsTest extends org.junit.Assert {
assertion = new SamlAssertionWrapper(token);
Assert.assertEquals("service-A", assertion.getSubjectName());
- String tokenString = DOM2Writer.nodeToString(token);
- System.out.println(tokenString);
-
boolean foundBob = false;
boolean foundTechnical = false;
for (org.opensaml.saml.saml2.core.AttributeStatement attributeStatement
--
To stop receiving notification emails like this one, please contact
coheigea@apache.org.