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)

This commit is contained in:
Scott McCrory 2005-07-25 03:46:23 +00:00
parent c66c5dfab5
commit db4ed4bc44
2 changed files with 11 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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>