AA dumps the response in debug mode.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 20 Feb 2003 00:02:50 +0000 (00:02 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 20 Feb 2003 00:02:50 +0000 (00:02 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@486 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AASaml.java

index de007eb..7d0b662 100755 (executable)
@@ -137,6 +137,7 @@ public class AASaml {
                                                 /* recipient URL*/ null,
                                                 /* no attrs -> no assersion*/ null,
                                                 exception);
+               
             } else {
                 
                 // Determine max lifetime, and filter via query if necessary.
@@ -186,7 +187,20 @@ public class AASaml {
             ourSE = se;
         } catch (CloneNotSupportedException ex) {
             ourSE = new SAMLException(SAMLException.RESPONDER, ex);
+        
         } finally{
+        
+               if (log.isDebugEnabled()) {
+                               try {
+                                       log.debug(
+                                               "Dumping generated SAML Response:"
+                                               + System.getProperty("line.separator")
+                                               + new String(new BASE64Decoder().decodeBuffer(new String(sResp.toBase64(), "ASCII")), "UTF8"));
+                               } catch (IOException e) {
+                                       log.error("Encountered an error while decoding SAMLReponse for logging purposes.");
+                               }
+                       }
+                       
             binding.respond(resp,sResp,ourSE);     
         }
     }