public abstract class DefaultOAuthApi20 extends java.lang.Object implements OAuthApi
Constructor and Description |
---|
DefaultOAuthApi20() |
Modifier and Type | Method and Description |
---|---|
OAuthService |
createService(OAuthConfig config)
Creates an
OAuthService |
abstract java.lang.String |
getAccessTokenEndpoint()
Returns the URL that receives the access token requests.
|
AccessTokenExtractor |
getAccessTokenExtractor()
Returns the access token extractor.
|
java.lang.String |
getAccessTokenVerb()
Returns the verb for the access token endpoint (defaults to GET)
|
abstract java.lang.String |
getAuthorizationUrl(OAuthConfig config)
Returns the URL where you should redirect your users to authenticate your application.
|
java.lang.String |
getRefreshTokenParameterName()
I (Bret Johnson) merged in refresh token support from the scribe fork here: https://github.com/fernandezpablo85/scribe-java/pull/253
|
public AccessTokenExtractor getAccessTokenExtractor()
public java.lang.String getAccessTokenVerb()
public abstract java.lang.String getAccessTokenEndpoint()
public abstract java.lang.String getAuthorizationUrl(OAuthConfig config)
config
- OAuth 2.0 configuration param objectpublic OAuthService createService(OAuthConfig config)
OAuthService
createService
in interface OAuthApi
config
- config info (apiKey, apiSecret, callback, scope)OAuthService
public java.lang.String getRefreshTokenParameterName()