瀏覽代碼

Added debug statement to AbstractTicketValidator to help with Acegi+CAS+SSL setup (thanks Seth Ladd for the patch) (see http://opensource.atlassian.com/projects/spring/browse/SEC-34)

Scott McCrory 20 年之前
父節點
當前提交
db4ed4bc44

+ 10 - 0
core/src/main/java/org/acegisecurity/providers/cas/ticketvalidator/AbstractTicketValidator.java

@@ -18,6 +18,8 @@ package net.sf.acegisecurity.providers.cas.ticketvalidator;
 import net.sf.acegisecurity.providers.cas.TicketValidator;
 import net.sf.acegisecurity.ui.cas.ServiceProperties;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.springframework.beans.factory.InitializingBean;
 import org.springframework.util.Assert;
 
@@ -30,6 +32,10 @@ import org.springframework.util.Assert;
  */
 public abstract class AbstractTicketValidator implements TicketValidator,
     InitializingBean {
+    //~ Static fields/initializers =============================================
+
+    private static final Log logger = LogFactory.getLog(CasProxyTicketValidator.class);
+    
     //~ Instance fields ========================================================
 
     private ServiceProperties serviceProperties;
@@ -85,6 +91,10 @@ public abstract class AbstractTicketValidator implements TicketValidator,
         Assert.notNull(serviceProperties, "serviceProperties must be specified");
 
         if ((trustStore != null) && (!"".equals(trustStore))) {
+            if (logger.isDebugEnabled()) {
+                logger.debug("Setting system property 'javax.net.ssl.trustStore'" +
+                        " to value [" + trustStore + "]");
+            }
             System.setProperty("javax.net.ssl.trustStore", trustStore);
         }
     }

+ 1 - 0
doc/xdocs/changes.xml

@@ -53,6 +53,7 @@
       <action dev="luke_t" type="add">Acegifier sample added (see http://opensource.atlassian.com/projects/spring/browse/SEC-1)</action>
       <action dev="smccrory" type="fix">CVS changes to help new Eclipse-based developers get started</action>
       <action dev="smccrory" type="fix">AuthorizeTag no longer depends on JDK 1.4.  Tested on Websphere 5.0 w/JDK 1.3 (see http://opensource.atlassian.com/projects/spring/browse/SEC-11)</action>
+      <action dev="smccrory" type="update">Added debug statement to AbstractTicketValidator to help with Acegi+CAS+SSL setup (thanks Seth Ladd for the patch) (see http://opensource.atlassian.com/projects/spring/browse/SEC-34)</action>
     </release>
     <release version="0.8.3" date="2005-05-12">
       <action dev="benalex" type="fix">HttpSessionContextIntegrationFilter elegantly handles IOExceptions and ServletExceptions within filter chain (see http://opensource.atlassian.com/projects/spring/browse/SEC-20)</action>