org.springframework.social.oauth1
Class ScribeOAuth1RequestSigner

java.lang.Object
  extended by org.springframework.social.oauth1.OAuth1ClientRequestSigner
      extended by 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.
 
Method Summary
protected  java.lang.String buildAuthorizationHeader(HttpMethod method, java.net.URI url, java.util.Map<java.lang.String,java.lang.String> parameters)
           
 
Methods inherited from class org.springframework.social.oauth1.OAuth1ClientRequestSigner
decode, sign
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 value
accessTokenSecret - the access token secret
apiKey - the API key assigned by the provider
apiSecret - the API secret assigned by the provider
Method Detail

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