net.stepniak.api.auth.controller
Class BaseAuthController
java.lang.Object
net.stepniak.api.controller.ApiController
net.stepniak.api.auth.controller.BaseAuthController
- Direct Known Subclasses:
- AuthController, KeyController, UserController
public abstract class BaseAuthController
- extends net.stepniak.api.controller.ApiController
| Fields inherited from class net.stepniak.api.controller.ApiController |
jsonMapper, request, uriInfo |
| Methods inherited from class net.stepniak.api.controller.ApiController |
fromJson |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
auth
@Autowired
protected Auth auth
BaseAuthController
public BaseAuthController()
getSessionId
public String getSessionId()
validateSessionId
protected String validateSessionId(String sessionId)
throws AuthException
- Throws:
AuthException
getAuthorizedUser
protected UserEntity getAuthorizedUser(String sessionId)
throws AuthException
- Throws:
AuthException
validateApiKey
protected String validateApiKey(String key)
throws AuthException
- Throws:
AuthException
Copyright © 2013. All Rights Reserved.