org.clazzes.util.http.aop
public class HttpCheckLoginService extends HttpAwareSupport implements org.clazzes.util.http.sec.CheckLoginService
A default server-side implementation of a login service operating on
behalf of a HttpLoginService
instance and a thread-bound http request.
Counter-XSRF page token checks may be undertaken by providing a
PageTokenService
instance through
setPageTokenService(PageTokenService)
.
Constructor and Description |
---|
HttpCheckLoginService() |
Modifier and Type | Method and Description |
---|---|
String |
checkLogin() |
boolean |
checkPermission(String contextUrl) |
String |
getLocale() |
org.clazzes.util.http.sec.HttpLoginService |
getLoginService() |
String |
getLoginUrl() |
org.clazzes.util.http.sec.PageTokenService |
getPageTokenService() |
String |
getTimeZone() |
void |
logout() |
void |
setLoginService(org.clazzes.util.http.sec.HttpLoginService loginService) |
void |
setPageTokenService(org.clazzes.util.http.sec.PageTokenService pageTokenService) |
getRequestThreadLocalKey, getResponseThreadLocalKey, getThreadLocalRequest, getThreadLocalResponse, setRequestThreadLocalKey, setResponseThreadLocalKey
public String checkLogin() throws org.clazzes.util.http.sec.LoginRequiredException
checkLogin
in interface org.clazzes.util.http.sec.CheckLoginService
org.clazzes.util.http.sec.LoginRequiredException
public String getLocale()
getLocale
in interface org.clazzes.util.http.sec.CheckLoginService
public String getTimeZone()
getTimeZone
in interface org.clazzes.util.http.sec.CheckLoginService
public boolean checkPermission(String contextUrl)
checkPermission
in interface org.clazzes.util.http.sec.CheckLoginService
public String getLoginUrl()
getLoginUrl
in interface org.clazzes.util.http.sec.CheckLoginService
public void logout()
logout
in interface org.clazzes.util.http.sec.CheckLoginService
public org.clazzes.util.http.sec.HttpLoginService getLoginService()
public void setLoginService(org.clazzes.util.http.sec.HttpLoginService loginService)
loginService
- the external login service to set.public org.clazzes.util.http.sec.PageTokenService getPageTokenService()
public void setPageTokenService(org.clazzes.util.http.sec.PageTokenService pageTokenService)
pageTokenService
- the counter-XSRF page token service to set.Copyright © 2014 Clazzes.org. All Rights Reserved.