All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zkoss.zkplus.acegi.ZkTokenBasedRememberMeServices Maven / Gradle / Ivy

/* ZkTokenBasedRememberMeServices.java

{{IS_NOTE
	Purpose:
		
	Description:
		
	History:
		Thu Dec 28 09:26:17     2006, Created by Henri
}}IS_NOTE

Copyright (C) 2006 Potix Corporation. All Rights Reserved.

{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.zkplus.acegi;

import javax.servlet.http.HttpServletRequest;

import org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices;

/**
 * 

get rememberme from request's attribute rather than request's parameter.

*

Applicable to Acegi Security version 1.0.3

* @author Henri * @deprecated As of release 7.0.0 */ public class ZkTokenBasedRememberMeServices extends TokenBasedRememberMeServices { protected boolean rememberMeRequested(HttpServletRequest request, String param) { if (isAlwaysRemember()) { return true; } if (param == null) { return false; } Boolean yesno = (Boolean) request.getAttribute(param); return yesno != null && yesno.booleanValue(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy