play.libs
Class OAuth.OAuthCalculator

java.lang.Object
  extended by oauth.signpost.AbstractOAuthConsumer
      extended by play.libs.OAuth.OAuthCalculator
All Implemented Interfaces:
java.io.Serializable, oauth.signpost.OAuthConsumer, WS.SignatureCalculator
Enclosing class:
OAuth

public static class OAuth.OAuthCalculator
extends oauth.signpost.AbstractOAuthConsumer
implements WS.SignatureCalculator

A signature calculator for the Play WS API. Example: {{{ WS.url("http://example.com/protected").sign(OAuthCalculator(service, tokens)).get() }}}

See Also:
Serialized Form

Constructor Summary
OAuth.OAuthCalculator(OAuth.ConsumerKey consumerKey, OAuth.RequestToken token)
           
 
Method Summary
 void sign(WS.WSRequest request)
          Sign a request
protected  oauth.signpost.http.HttpRequest wrap(java.lang.Object request)
           
 
Methods inherited from class oauth.signpost.AbstractOAuthConsumer
collectBodyParameters, collectHeaderParameters, collectQueryParameters, completeOAuthParameters, generateNonce, generateTimestamp, getConsumerKey, getConsumerSecret, getRequestParameters, getToken, getTokenSecret, setAdditionalParameters, setMessageSigner, setSendEmptyTokens, setSigningStrategy, setTokenWithSecret, sign, sign, sign
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth.OAuthCalculator

public OAuth.OAuthCalculator(OAuth.ConsumerKey consumerKey,
                             OAuth.RequestToken token)
Method Detail

wrap

protected oauth.signpost.http.HttpRequest wrap(java.lang.Object request)
Specified by:
wrap in class oauth.signpost.AbstractOAuthConsumer

sign

public void sign(WS.WSRequest request)
Description copied from interface: WS.SignatureCalculator
Sign a request

Specified by:
sign in interface WS.SignatureCalculator