public interface OAuthManager
Modifier and Type | Method and Description |
---|---|
String |
getAuthorizedId(HttpServletRequest request,
String configId)
Retrieve the user id who has been authorized for the app configured; (The user id is stored in the
encrypted cookie)
|
Response |
getOAuthDataWithSharedToken(Resource encryptedTokenResource,
String configId,
OAuthRequest oauthRequest)
Use a shared token stored on encryptedTokenNode to retrieve protected data with the specified
OAuthRequest |
String |
getOAuthDataWithSharedToken(Resource encryptedTokenResource,
String configId,
String url)
Convenience method; same as:
|
Response |
getOAuthDataWithUserToken(SlingHttpServletRequest request,
String configId,
OAuthRequest oauthRequest)
Use the user's access token (stored on the cookie or user profile jcr node) to retrieve protected data with
the specified
OAuthRequest |
String |
getOAuthDataWithUserToken(SlingHttpServletRequest request,
String configId,
String url)
Convenience method; same as:
|
Provider |
getProvider(String configId)
Retrieve the Provider implementation specific within the config with this configId
|
Response getOAuthDataWithSharedToken(Resource encryptedTokenResource, String configId, OAuthRequest oauthRequest) throws IOException
OAuthRequest
encryptedTokenResource
- configId
- oauthRequest
- IOException
String getOAuthDataWithSharedToken(Resource encryptedTokenResource, String configId, String url) throws IOException
OAuthRequest oauthRequest = new OAuthRequest(url, Verb.GET);
getOAuthDataWithSharedToken(encryptedTokenResource, configId, oauthRequest);
encryptedTokenResource
- configId
- url
- IOException
Response getOAuthDataWithUserToken(SlingHttpServletRequest request, String configId, OAuthRequest oauthRequest) throws IOException
OAuthRequest
request
- configId
- oauthRequest
- IOException
String getOAuthDataWithUserToken(SlingHttpServletRequest request, String configId, String url) throws IOException
OAuthRequest oauthRequest = new OAuthRequest(url, Verb.GET);
getOAuthDataStreamWithUserToken(request, configId, oauthRequest);
request
- configId
- url
- IOException
Provider getProvider(String configId)
configId
- "Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"