public interface OAuthTokenStore
OAuthToken
used both : - in the OAuth the Filter (Server side Tokens) : where
Nuxeo is the provider - in Shindig (Client side Tokens) ; where Nuxeo is the consumer This service provides a center
access point for all Token related actions.Modifier and Type | Method and Description |
---|---|
OAuthToken |
addVerifierToRequestToken(String token,
Long duration)
Generates a verification code and attache it to the REQUEST Token.
|
OAuthToken |
createAccessTokenFromRequestToken(OAuthToken requestToken)
Exchanges the REQUEST Token witha Real ACCESS Token (persistent) Token/TocketSecret Strings are regerated during
the exchange.
|
OAuthToken |
createRequestToken(String consumerKey,
String callBack)
Creates a new REQUEST Token (transient)
|
OAuthToken |
getAccessToken(String token)
Retrieves an ACCESS from the store.
|
NuxeoOAuthToken |
getClientAccessToken(String appId,
String owner)
Get a Access token for the Shindig Client.
|
OAuthToken |
getRequestToken(String token)
Retrieves a REQUEST Token given a Token string (extracted from the Request).
|
List<OAuthToken> |
listAccessTokenForConsumer(String consumerKey)
Lists ACCESS Token associated to a Consumer application.
|
List<OAuthToken> |
listAccessTokenForUser(String login)
Lists ACCESS Token associated to a User.
|
void |
removeAccessToken(String token)
Deletes an ACCESS Token from the storage.
|
void |
removeClientAccessToken(String appId,
String owner)
Deletes a Client side Access Token.
|
void |
removeRequestToken(String token)
Deletes a REQUEST Token.
|
void |
storeClientAccessToken(String consumerKey,
String callBack,
String token,
String tokenSecret,
String appId,
String owner)
Stores a Access token generated fro Shindig client.
|
OAuthToken createRequestToken(String consumerKey, String callBack)
OAuthToken addVerifierToRequestToken(String token, Long duration)
OAuthToken getRequestToken(String token)
void removeRequestToken(String token)
OAuthToken createAccessTokenFromRequestToken(OAuthToken requestToken)
OAuthToken getAccessToken(String token)
void removeAccessToken(String token) throws ClientException
ClientException
List<OAuthToken> listAccessTokenForUser(String login)
List<OAuthToken> listAccessTokenForConsumer(String consumerKey)
void storeClientAccessToken(String consumerKey, String callBack, String token, String tokenSecret, String appId, String owner)
NuxeoOAuthToken getClientAccessToken(String appId, String owner) throws ClientException
ClientException
void removeClientAccessToken(String appId, String owner) throws ClientException
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.