org.springframework.social.oauth1
Class ScribeOAuth1RequestSigner
java.lang.Object
org.springframework.social.oauth1.OAuth1ClientRequestSigner
org.springframework.social.oauth1.ScribeOAuth1RequestSigner
- All Implemented Interfaces:
- OAuthClientRequestSigner
public class ScribeOAuth1RequestSigner
- extends OAuth1ClientRequestSigner
Implementation of an OAuthClientRequestSigner
that uses Scribe to
calculate the Authorization header.
Constructor Summary |
ScribeOAuth1RequestSigner(java.lang.String apiKey,
java.lang.String apiSecret,
java.lang.String accessToken,
java.lang.String accessTokenSecret)
Create a new instance of ScribeOAuth1RequestSigner. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScribeOAuth1RequestSigner
public ScribeOAuth1RequestSigner(java.lang.String apiKey,
java.lang.String apiSecret,
java.lang.String accessToken,
java.lang.String accessTokenSecret)
- Create a new instance of ScribeOAuth1RequestSigner.
- Parameters:
accessToken
- the access token valueaccessTokenSecret
- the access token secretapiKey
- the API key assigned by the providerapiSecret
- the API secret assigned by the provider
buildAuthorizationHeader
protected java.lang.String buildAuthorizationHeader(HttpMethod method,
java.net.URI url,
java.util.Map<java.lang.String,java.lang.String> parameters)
- Specified by:
buildAuthorizationHeader
in class OAuth1ClientRequestSigner