|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.ws.security.oauth.impl.OAuthConsumerServiceImpl
public final class OAuthConsumerServiceImpl
| Field Summary | |
|---|---|
static long |
DEFAULT_TOKEN_ALIVE_TIME
Default token alive time is 5 hours. |
| Constructor Summary | |
|---|---|
OAuthConsumerServiceImpl(ExoOAuthClient oauthClient,
org.exoplatform.container.xml.InitParams params)
Without token cleaner. |
|
OAuthConsumerServiceImpl(ExoOAuthClient oauthClient,
OAuthTokenCleaner tokenCleaner,
org.exoplatform.container.xml.InitParams params)
With token cleaner. |
|
| Method Summary | |
|---|---|
net.oauth.OAuthAccessor |
getAccessor(net.oauth.OAuthMessage oauthMessage)
Get accessor, if accessor not found new one must be created. |
void |
removeAccessor(net.oauth.OAuthMessage oauthMessage)
Remove accessor, can be used for removing accessor when client logout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long DEFAULT_TOKEN_ALIVE_TIME
| Constructor Detail |
|---|
public OAuthConsumerServiceImpl(ExoOAuthClient oauthClient,
org.exoplatform.container.xml.InitParams params)
oauthClient - the ExoOAuthClient instance.params - initialized parameters.
public OAuthConsumerServiceImpl(ExoOAuthClient oauthClient,
OAuthTokenCleaner tokenCleaner,
org.exoplatform.container.xml.InitParams params)
oauthClient - the ExoOAuthClient instance.tokenCleaner - the TokenCleaner.params - initialized parameters.| Method Detail |
|---|
public net.oauth.OAuthAccessor getAccessor(net.oauth.OAuthMessage oauthMessage)
throws net.oauth.OAuthProblemException
getAccessor in interface OAuthConsumerServiceoauthMessage - the OAuthMessage. Must have at least two parameters
net.oauth.OAuthProblemException - if can't get accessor and can't create new one.net.oauth.OAuth.OAUTH_TOKEN,,
net.oauth.OAuth.OAUTH_TOKEN_SECRET.
public void removeAccessor(net.oauth.OAuthMessage oauthMessage)
throws net.oauth.OAuthProblemException
removeAccessor in interface OAuthConsumerServiceoauthMessage - the OAuthMessage. Must have at least two parameters
net.oauth.OAuthProblemException - if accessor can't be removed.net.oauth.OAuth.OAUTH_TOKEN,,
net.oauth.OAuth.OAUTH_TOKEN_SECRET.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||