com.dyuproject.openid
Interface OpenIdUserManager

All Known Implementing Classes:
CookieBasedUserManager, HttpSessionUserManager

public interface OpenIdUserManager

Manages associated/authenticated users; This can get/read, save/update and invalidate/delete an OpenIdUser.

Author:
David Yu
Date created:
Sep 20, 2008

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.
 

Method Detail

init

void init(Properties properties)
Initialize this object via user-configured properties.


getUser

OpenIdUser getUser(HttpServletRequest request)
                   throws IOException
Gets/reads the user associated with the given request.

Throws:
IOException

saveUser

boolean saveUser(OpenIdUser user,
                 HttpServletRequest request,
                 HttpServletResponse response)
                 throws IOException
Saves/persists the user associated with the given request.

Throws:
IOException

invalidate

boolean invalidate(HttpServletRequest request,
                   HttpServletResponse response)
                   throws IOException
Invalidates/removes/deletes the user associated with the given request.

Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.