|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.openid.manager.CookieBasedUserManager
public final class CookieBasedUserManager
The OpenIdUser is serialized and persisted in an http cookie.
Constructor Summary | |
---|---|
CookieBasedUserManager()
|
|
CookieBasedUserManager(String cookieName,
String secretKey)
|
|
CookieBasedUserManager(String cookieName,
String secretKey,
boolean encrypted)
|
Method Summary | |
---|---|
StandardJSON |
getJSON()
|
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 . |
void |
setCookieDomain(String cookieDomain)
|
void |
setCookieName(String cookieName)
|
void |
setCookiePath(String cookiePath)
|
void |
setEncrypted(boolean encrypted)
|
void |
setLoginTimeout(int loginTimeout)
|
void |
setMaxAge(int maxAge)
|
void |
setSecretKey(String secretKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CookieBasedUserManager()
public CookieBasedUserManager(String cookieName, String secretKey)
public CookieBasedUserManager(String cookieName, String secretKey, boolean encrypted)
Method Detail |
---|
public StandardJSON getJSON()
public void init(Properties properties)
OpenIdUserManager
init
in interface OpenIdUserManager
public void setSecretKey(String secretKey)
public void setCookieName(String cookieName)
public void setCookiePath(String cookiePath)
public void setCookieDomain(String cookieDomain)
public void setMaxAge(int maxAge)
public void setLoginTimeout(int loginTimeout)
public void setEncrypted(boolean encrypted)
public OpenIdUser getUser(HttpServletRequest request) throws IOException
OpenIdUserManager
request
.
getUser
in interface OpenIdUserManager
IOException
public boolean saveUser(OpenIdUser user, HttpServletRequest request, HttpServletResponse response) throws IOException
OpenIdUserManager
request
.
saveUser
in interface OpenIdUserManager
IOException
public boolean invalidate(HttpServletRequest request, HttpServletResponse response) throws IOException
OpenIdUserManager
request
.
invalidate
in interface OpenIdUserManager
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |