|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.oauth.manager.CookieBasedTokenManager
public final class CookieBasedTokenManager
CookieBasedTokenManager - stores the token in the cookie encrypted.
Constructor Summary | |
---|---|
CookieBasedTokenManager()
|
|
CookieBasedTokenManager(String secretKey)
|
|
CookieBasedTokenManager(String secretKey,
String cookiePath,
String cookieDomain,
int loginTimeout,
int maxAge)
|
Method Summary | |
---|---|
StandardJSON |
getJSON()
|
Token |
getToken(String consumerKey,
HttpServletRequest request)
Gets the token. |
protected void |
init()
|
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. |
void |
setCookieDomain(String cookieDomain)
|
void |
setCookiePath(String cookiePath)
|
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 CookieBasedTokenManager()
public CookieBasedTokenManager(String secretKey)
public CookieBasedTokenManager(String secretKey, String cookiePath, String cookieDomain, int loginTimeout, int maxAge)
Method Detail |
---|
public StandardJSON getJSON()
public void init(Properties properties)
TokenManager
init
in interface TokenManager
public void setSecretKey(String secretKey)
public void setCookiePath(String cookiePath)
public void setCookieDomain(String cookieDomain)
public void setMaxAge(int maxAge)
public void setLoginTimeout(int loginTimeout)
protected void init()
public Token getToken(String consumerKey, HttpServletRequest request) throws IOException
TokenManager
getToken
in interface TokenManager
IOException
public boolean saveToken(Token token, HttpServletRequest request, HttpServletResponse response) throws IOException
TokenManager
saveToken
in interface TokenManager
IOException
public boolean invalidate(String consumerKey, HttpServletRequest request, HttpServletResponse response) throws IOException
TokenManager
invalidate
in interface TokenManager
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |