You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2012/03/07 16:05:09 UTC

svn commit: r1297985 - /santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java

Author: coheigea
Date: Wed Mar  7 15:05:09 2012
New Revision: 1297985

URL: http://svn.apache.org/viewvc?rev=1297985&view=rev
Log:
Log the decrypted octets properly if debug is set

Modified:
    santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java

Modified: santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java?rev=1297985&r1=1297984&r2=1297985&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java (original)
+++ santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/encryption/XMLCipher.java Wed Mar  7 15:05:09 2012
@@ -1558,7 +1558,7 @@ public class XMLCipher {
         byte[] octets = decryptToByteArray(element);
 
         if (log.isDebugEnabled()) {
-            log.debug("Decrypted octets:\n" + octets);
+            log.debug("Decrypted octets:\n" + new String(octets));
         }
 
         Node sourceParent = element.getParentNode();