public class SecuredRestService extends RestService
applicationContext, request, servletContext| Constructor and Description |
|---|
SecuredRestService() |
SecuredRestService(ApplicationContext applicationContext,
UserIdentityContext userIdentityContext) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getLoggedUsername()
Convenience function to quickly access logged username without going through getUserIdentityContext().get...
|
UserIdentityContext |
getUserIdentityContext() |
void |
init() |
protected void |
secure()
Makes sure the request is done by an authenticated user.
|
buildErrorResponse, buildInvalidResponse, buildOkResponse, buildOkResponse, buildWebTriggerHtmlResponse, buildWebTriggerJsonResponse, read, sizepublic SecuredRestService()
public SecuredRestService(ApplicationContext applicationContext, UserIdentityContext userIdentityContext)
public void init()
init in class RestServicepublic UserIdentityContext getUserIdentityContext()
protected void secure()
protected String getLoggedUsername()
Copyright © 2016. All Rights Reserved.