net.stepniak.api.auth.controller
Class BaseAuthController

java.lang.Object
  extended by net.stepniak.api.controller.ApiController
      extended by net.stepniak.api.auth.controller.BaseAuthController
Direct Known Subclasses:
AuthController, KeyController, UserController

public abstract class BaseAuthController
extends net.stepniak.api.controller.ApiController


Field Summary
protected  Auth auth
           
 
Fields inherited from class net.stepniak.api.controller.ApiController
jsonMapper, request, uriInfo
 
Constructor Summary
BaseAuthController()
           
 
Method Summary
protected  UserEntity getAuthorizedUser(String sessionId)
           
 String getSessionId()
           
protected  String validateApiKey(String key)
           
protected  String validateSessionId(String sessionId)
           
 
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
 

Field Detail

auth

@Autowired
protected Auth auth
Constructor Detail

BaseAuthController

public BaseAuthController()
Method Detail

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.