public abstract class DefaultOAuthApi10a extends java.lang.Object implements OAuthApi
Constructor and Description |
---|
DefaultOAuthApi10a() |
Modifier and Type | Method and Description |
---|---|
OAuthService |
createService(OAuthConfig config)
Returns the
OAuthService for this Api |
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 method for the access token endpoint (defaults to POST)
|
abstract java.lang.String |
getAuthorizationUrl(Token requestToken)
Returns the URL where you should redirect your users to authenticate your application.
|
BaseStringExtractor |
getBaseStringExtractor()
Returns the base string extractor.
|
HeaderExtractor |
getHeaderExtractor()
Returns the header extractor.
|
abstract java.lang.String |
getRequestTokenEndpoint()
Returns the URL that receives the request token requests.
|
RequestTokenExtractor |
getRequestTokenExtractor()
Returns the request token extractor.
|
java.lang.String |
getRequestTokenVerb()
Returns the verb for the request token endpoint (defaults to POST)
|
SignatureService |
getSignatureService()
Returns the signature service.
|
TimestampService |
getTimestampService()
Returns the timestamp service.
|
public AccessTokenExtractor getAccessTokenExtractor()
public BaseStringExtractor getBaseStringExtractor()
public HeaderExtractor getHeaderExtractor()
public RequestTokenExtractor getRequestTokenExtractor()
public SignatureService getSignatureService()
public TimestampService getTimestampService()
public java.lang.String getAccessTokenVerb()
public java.lang.String getRequestTokenVerb()
public abstract java.lang.String getRequestTokenEndpoint()
public abstract java.lang.String getAccessTokenEndpoint()
public abstract java.lang.String getAuthorizationUrl(Token requestToken)
requestToken
- the request token you need to authorizepublic OAuthService createService(OAuthConfig config)
OAuthService
for this ApicreateService
in interface OAuthApi
config
- config info (apiKey, apiSecret, callback, scope)OAuthService