public interface OAuthManager
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthorizedId(HttpServletRequest request,
java.lang.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,
java.lang.String configId,
OAuthRequest oauthRequest)
Use a shared token stored on encryptedTokenNode to retrieve protected data with the specified
OAuthRequest |
Response |
getOAuthDataWithUserToken(SlingHttpServletRequest request,
java.lang.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(java.lang.String configId)
Retrieve the Provider implementation specific within the config with this configId
|
Response getOAuthDataWithSharedToken(Resource encryptedTokenResource, java.lang.String configId, OAuthRequest oauthRequest) throws java.io.IOException
OAuthRequest
encryptedTokenResource
- configId
- oauthRequest
- java.io.IOException
Response getOAuthDataWithUserToken(SlingHttpServletRequest request, java.lang.String configId, OAuthRequest oauthRequest) throws java.io.IOException
OAuthRequest
request
- configId
- oauthRequest
- java.io.IOException
Provider getProvider(java.lang.String configId)
configId
- java.lang.String getAuthorizedId(HttpServletRequest request, java.lang.String configId)
request
- configId
- the id of the configuration"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"