public class OAuth20ServiceImpl extends Object implements OAuthService
Constructor and Description |
---|
OAuth20ServiceImpl(DefaultApi20 api,
OAuthConfig config)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Token |
getAccessToken(Token requestToken,
Verifier verifier)
Retrieve the access token
|
String |
getAuthorizationUrl(Token requestToken)
Returns the URL where you should redirect your users to authenticate
your application.
|
Token |
getRequestToken()
Retrieve the request token.
|
String |
getVersion()
Returns the OAuth version of the service.
|
void |
signRequest(Token accessToken,
OAuthRequest request)
Signs am OAuth request
|
public OAuth20ServiceImpl(DefaultApi20 api, OAuthConfig config)
api
- OAuth2.0 api informationconfig
- OAuth 2.0 configuration param objectpublic Token getAccessToken(Token requestToken, Verifier verifier)
getAccessToken
in interface OAuthService
requestToken
- request token (obtained previously)verifier
- verifier codepublic Token getRequestToken()
getRequestToken
in interface OAuthService
public String getVersion()
getVersion
in interface OAuthService
public void signRequest(Token accessToken, OAuthRequest request)
signRequest
in interface OAuthService
accessToken
- access token (obtained previously)request
- request to signpublic String getAuthorizationUrl(Token requestToken)
getAuthorizationUrl
in interface OAuthService
requestToken
- the request token you need to authorizeCopyright © 2010 - 2020 Adobe. All Rights Reserved