|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectegovframework.rfc3.iam.security.authentication.rememberme.AbstractRememberMeServices
public abstract class AbstractRememberMeServices
Base class for RememberMeServices implementations.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PARAMETER
|
static java.lang.String |
SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY
|
static int |
TWO_WEEKS_S
|
| Constructor Summary | |
|---|---|
AbstractRememberMeServices()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
org.springframework.security.core.Authentication |
autoLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Template implementation which locates the Spring Security cookie, decodes it into a delimited array of tokens and submits it to subclasses for processing via the processAutoLoginCookie method. |
java.lang.String |
extractRememberMeCookie(javax.servlet.http.HttpServletRequest request)
Locates the Spring Security remember me cookie in the request and returns its value. |
java.lang.String |
getKey()
|
java.lang.String |
getParameter()
|
void |
loginFail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called whenever an interactive authentication attempt was made, but the credentials supplied by the user were missing or otherwise invalid. |
void |
loginSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication successfulAuthentication)
Examines the incoming request and checks for the presence of the configured "remember me" parameter. |
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
Implementation of LogoutHandler. |
org.springframework.security.core.Authentication |
onCookiesValidate(java.lang.String cookieName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
실시간 쿠기 인증 검사 |
void |
setAlwaysRemember(boolean alwaysRemember)
|
void |
setAuthenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource authenticationDetailsSource)
|
void |
setCookieName(java.lang.String cookieName)
|
void |
setKey(java.lang.String key)
|
void |
setParameter(java.lang.String parameter)
Sets the name of the parameter which should be checked for to see if a remember-me has been requested during a login request. |
void |
setTokenValiditySeconds(int tokenValiditySeconds)
|
void |
setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
|
void |
setUseSecureCookie(boolean useSecureCookie)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SPRING_SECURITY_REMEMBER_ME_COOKIE_KEY
public static final java.lang.String DEFAULT_PARAMETER
public static final int TWO_WEEKS_S
| Constructor Detail |
|---|
public AbstractRememberMeServices()
| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public final org.springframework.security.core.Authentication autoLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The returned username is then used to load the UserDetails object for the user, which in turn is used to create a valid authentication token.
autoLogin in interface RFC3RememberMeServicesrequest - to look for a remember-me token withinresponse - to change, cancel or modify the remember-me token
null if the request should not be authenticated
public final org.springframework.security.core.Authentication onCookiesValidate(java.lang.String cookieName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
onCookiesValidate in interface RFC3RememberMeServicespublic java.lang.String extractRememberMeCookie(javax.servlet.http.HttpServletRequest request)
request - the submitted request which is to be authenticated
public final void loginFail(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
RFC3RememberMeServicesHttpServletRequest.
loginFail in interface RFC3RememberMeServicesrequest - that contained an invalid authentication requestresponse - to change, cancel or modify the remember-me token
public final void loginSuccess(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication successfulAuthentication)
loginSuccess in interface RFC3RememberMeServicesrequest - that contained the valid authentication requestresponse - to change, cancel or modify the remember-me tokensuccessfulAuthentication - representing the successfully authenticated principal
public void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
logout in interface org.springframework.security.web.authentication.logout.LogoutHandlerpublic void setCookieName(java.lang.String cookieName)
public void setAlwaysRemember(boolean alwaysRemember)
public void setParameter(java.lang.String parameter)
parameter - the HTTP request parameterpublic java.lang.String getParameter()
public void setUserDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
public void setKey(java.lang.String key)
public java.lang.String getKey()
public void setTokenValiditySeconds(int tokenValiditySeconds)
public void setUseSecureCookie(boolean useSecureCookie)
public void setAuthenticationDetailsSource(org.springframework.security.authentication.AuthenticationDetailsSource authenticationDetailsSource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||