com.dyuproject.openid.manager
Class HttpSessionUserManager

java.lang.Object
  extended by com.dyuproject.openid.manager.HttpSessionUserManager
All Implemented Interfaces:
OpenIdUserManager

public final class HttpSessionUserManager
extends Object
implements OpenIdUserManager

The OpenIdUser is persisted in the HttpSession.

Author:
David Yu
Date created:
Jan 5, 2009

Constructor Summary
HttpSessionUserManager()
           
 
Method Summary
 OpenIdUser getUser(HttpServletRequest request)
          Gets/reads the user associated with the given request.
 void init(Properties properties)
          Initialize this object via user-configured properties.
 boolean invalidate(HttpServletRequest request, HttpServletResponse response)
          Invalidates/removes/deletes the user associated with the given request.
 boolean saveUser(OpenIdUser user, HttpServletRequest request, HttpServletResponse response)
          Saves/persists the user associated with the given request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionUserManager

public HttpSessionUserManager()
Method Detail

init

public void init(Properties properties)
Description copied from interface: OpenIdUserManager
Initialize this object via user-configured properties.

Specified by:
init in interface OpenIdUserManager

getUser

public OpenIdUser getUser(HttpServletRequest request)
                   throws IOException
Description copied from interface: OpenIdUserManager
Gets/reads the user associated with the given request.

Specified by:
getUser in interface OpenIdUserManager
Throws:
IOException

invalidate

public boolean invalidate(HttpServletRequest request,
                          HttpServletResponse response)
                   throws IOException
Description copied from interface: OpenIdUserManager
Invalidates/removes/deletes the user associated with the given request.

Specified by:
invalidate in interface OpenIdUserManager
Throws:
IOException

saveUser

public boolean saveUser(OpenIdUser user,
                        HttpServletRequest request,
                        HttpServletResponse response)
                 throws IOException
Description copied from interface: OpenIdUserManager
Saves/persists the user associated with the given request.

Specified by:
saveUser in interface OpenIdUserManager
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.