com.dyuproject.oauth.manager
Class HttpSessionTokenManager

java.lang.Object
  extended by com.dyuproject.oauth.manager.HttpSessionTokenManager
All Implemented Interfaces:
TokenManager

public final class HttpSessionTokenManager
extends Object
implements TokenManager

HttpSessionTokenManager - stores the token in the HttpSession

Author:
David Yu
Date created:
May 30, 2009

Constructor Summary
HttpSessionTokenManager()
           
 
Method Summary
 Token getToken(String consumerKey, HttpServletRequest request)
          Gets the token.
 void init(Properties properties)
          Initialize this manager based from the given properties.
 boolean invalidate(String consumerKey, HttpServletRequest request, HttpServletResponse response)
          Invalidates the token.
 boolean saveToken(Token token, HttpServletRequest request, HttpServletResponse response)
          Saves the token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionTokenManager

public HttpSessionTokenManager()
Method Detail

init

public void init(Properties properties)
Description copied from interface: TokenManager
Initialize this manager based from the given properties.

Specified by:
init in interface TokenManager

getToken

public Token getToken(String consumerKey,
                      HttpServletRequest request)
               throws IOException
Description copied from interface: TokenManager
Gets the token.

Specified by:
getToken in interface TokenManager
Throws:
IOException

invalidate

public boolean invalidate(String consumerKey,
                          HttpServletRequest request,
                          HttpServletResponse response)
                   throws IOException
Description copied from interface: TokenManager
Invalidates the token.

Specified by:
invalidate in interface TokenManager
Throws:
IOException

saveToken

public boolean saveToken(Token token,
                         HttpServletRequest request,
                         HttpServletResponse response)
                  throws IOException
Description copied from interface: TokenManager
Saves the token.

Specified by:
saveToken in interface TokenManager
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.