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 |
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 |
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
OAuthRequestencryptedTokenResource - configId - oauthRequest - IOExceptionResponse getOAuthDataWithUserToken(SlingHttpServletRequest request, String configId, OAuthRequest oauthRequest) throws IOException
OAuthRequestrequest - configId - oauthRequest - IOExceptionProvider getProvider(String configId)
configId - String getAuthorizedId(HttpServletRequest request, String configId)
request - configId - the id of the configuration"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"