Interface OAuthTokenStore
- All Known Implementing Classes:
OAuthTokenStoreImpl
public interface OAuthTokenStore
Service interface for managing
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.- Author:
- tiry
-
Method Summary
Modifier and TypeMethodDescriptionaddVerifierToRequestToken(String token, Long duration) Generates a verification code and attache it to the REQUEST Token.createAccessTokenFromRequestToken(OAuthToken requestToken) Exchanges the REQUEST Token witha Real ACCESS Token (persistent) Token/TocketSecret Strings are regerated during the exchange.createRequestToken(String consumerKey, String callBack) Creates a new REQUEST Token (transient)getAccessToken(String token) Retrieves an ACCESS from the store.getClientAccessToken(String appId, String owner) Get a Access token for the Shindig Client.getRequestToken(String token) Retrieves a REQUEST Token given a Token string (extracted from the Request).listAccessTokenForConsumer(String consumerKey) Lists ACCESS Token associated to a Consumer application.listAccessTokenForUser(String login) Lists ACCESS Token associated to a User.voidremoveAccessToken(String token) Deletes an ACCESS Token from the storage.voidremoveClientAccessToken(String appId, String owner) Deletes a Client side Access Token.voidremoveRequestToken(String token) Deletes a REQUEST Token.voidstoreClientAccessToken(String consumerKey, String callBack, String token, String tokenSecret, String appId, String owner) Stores a Access token generated fro Shindig client.
-
Method Details
-
createRequestToken
Creates a new REQUEST Token (transient) -
addVerifierToRequestToken
Generates a verification code and attache it to the REQUEST Token. -
getRequestToken
Retrieves a REQUEST Token given a Token string (extracted from the Request). -
removeRequestToken
Deletes a REQUEST Token. -
createAccessTokenFromRequestToken
Exchanges the REQUEST Token witha Real ACCESS Token (persistent) Token/TocketSecret Strings are regerated during the exchange. -
getAccessToken
Retrieves an ACCESS from the store. -
removeAccessToken
Deletes an ACCESS Token from the storage. -
listAccessTokenForUser
Lists ACCESS Token associated to a User. -
listAccessTokenForConsumer
Lists ACCESS Token associated to a Consumer application. -
storeClientAccessToken
void storeClientAccessToken(String consumerKey, String callBack, String token, String tokenSecret, String appId, String owner) Stores a Access token generated fro Shindig client. -
getClientAccessToken
Get a Access token for the Shindig Client. -
removeClientAccessToken
Deletes a Client side Access Token.
-