Package org.scribe.oauth
Interface OAuthService
- All Known Implementing Classes:
OAuth10aServiceImpl
,OAuth20ServiceImpl
public interface OAuthService
The main Scribe object.
A facade responsible for the retrieval of request and access tokens and for the signing of HTTP requests.
-
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken
(Token requestToken, Verifier verifier) Retrieve the access tokengetAuthorizationUrl
(Token requestToken) Returns the URL where you should redirect your users to authenticate your application.Retrieve the request token.Returns the OAuth version of the service.void
signRequest
(Token accessToken, OAuthRequest request) Signs am OAuth request
-
Method Details
-
getRequestToken
Token getRequestToken()Retrieve the request token.- Returns:
- request token
-
getAccessToken
Retrieve the access token- Parameters:
requestToken
- request token (obtained previously)verifier
- verifier code- Returns:
- access token
-
signRequest
Signs am OAuth request- Parameters:
accessToken
- access token (obtained previously)request
- request to sign
-
getVersion
String getVersion()Returns the OAuth version of the service.- Returns:
- oauth version as string
-
getAuthorizationUrl
Returns the URL where you should redirect your users to authenticate your application.- Parameters:
requestToken
- the request token you need to authorize- Returns:
- the URL where you should redirect your users
-