com.force.sdk.springsecurity
Class ForceRememberMeServices
java.lang.Object
com.force.sdk.springsecurity.ForceRememberMeServices
- All Implemented Interfaces:
- org.springframework.security.web.authentication.RememberMeServices
public class ForceRememberMeServices
- extends Object
- implements org.springframework.security.web.authentication.RememberMeServices
ForceRememberMeServices is used by the standard spring RememberMeAuthenticationFilter
.
This is how the SecurityContext
is retrieved from the SecurityContextService
. Normally
this piece of the Spring Security framework is used for a simple remember me cookie, but in this case it is used
to validate the presence of a SecurityContext
in the SecurityContextStorageService
so that the
authentication can be skipped completely if necessary.
- Author:
- John Simone
Method Summary |
org.springframework.security.core.Authentication |
autoLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
loginFail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
loginSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication successfulAuthentication)
|
void |
setSecurityContextService(SecurityContextService securityContextService)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForceRememberMeServices
public ForceRememberMeServices()
setSecurityContextService
public void setSecurityContextService(SecurityContextService securityContextService)
autoLogin
public org.springframework.security.core.Authentication autoLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Specified by:
autoLogin
in interface org.springframework.security.web.authentication.RememberMeServices
loginFail
public void loginFail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Specified by:
loginFail
in interface org.springframework.security.web.authentication.RememberMeServices
loginSuccess
public void loginSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication successfulAuthentication)
- Specified by:
loginSuccess
in interface org.springframework.security.web.authentication.RememberMeServices
Copyright © 2011. All Rights Reserved.