com.dyuproject.openid.manager
Class HttpSessionUserManager

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

public class HttpSessionUserManager
extends Object
implements OpenIdUserManager

OpenIdUser is persisted in the HttpSession.

Author:
David Yu

Constructor Summary
HttpSessionUserManager()
           
 
Method Summary
 OpenIdUser getUser(HttpServletRequest request)
           
 void init(Properties properties)
           
 boolean invalidate(HttpServletRequest request, HttpServletResponse response)
           
 boolean saveUser(OpenIdUser user, HttpServletRequest request, HttpServletResponse response)
           
 
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)
Specified by:
init in interface OpenIdUserManager

getUser

public OpenIdUser getUser(HttpServletRequest request)
                   throws IOException
Specified by:
getUser in interface OpenIdUserManager
Throws:
IOException

invalidate

public boolean invalidate(HttpServletRequest request,
                          HttpServletResponse response)
                   throws IOException
Specified by:
invalidate in interface OpenIdUserManager
Throws:
IOException

saveUser

public boolean saveUser(OpenIdUser user,
                        HttpServletRequest request,
                        HttpServletResponse response)
                 throws IOException
Specified by:
saveUser in interface OpenIdUserManager
Throws:
IOException


Copyright © 2013. All Rights Reserved.