Package spanishgringo.data

Examples of spanishgringo.data.UserToken


  public void storeAuthorizedToken(String requestQuery) {

    String userId = userService.getCurrentUser().getUserId();
    String sessionToken = authService.getSessionTokenFromString(requestQuery);

    UserToken tmpUserToken = new UserToken(userId, sessionToken);
    tokenDao.storeToken(tmpUserToken);
  }
View Full Code Here


   * Revokes the current user's token and removes it from the data store.
   */
  public void revokeToken() {

    String userId = userService.getCurrentUser().getUserId();
    UserToken tmpUserToken = tokenDao.retrieveTokenById(userId);
    authService.revokeToken(tmpUserToken);
    tokenDao.removeTokenById(userId);
  }
View Full Code Here

TOP

Related Classes of spanishgringo.data.UserToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.