oauth.signpost.signature
Class QueryStringSigningStrategy

java.lang.Object
  extended by oauth.signpost.signature.QueryStringSigningStrategy
All Implemented Interfaces:
Serializable, SigningStrategy

public class QueryStringSigningStrategy
extends Object
implements SigningStrategy

Writes to a URL query string. Note that this currently ONLY works when signing a URL directly, not with HTTP request objects. That's because most HTTP request implementations do not allow the client to change the URL once the request has been instantiated, so there is no way to append parameters to it.

Author:
Matthias Kaeppler
See Also:
Serialized Form

Constructor Summary
QueryStringSigningStrategy()
           
 
Method Summary
 String writeSignature(String signature, HttpRequest request, HttpParameters requestParameters)
          Writes an OAuth signature and all remaining required parameters to an HTTP message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryStringSigningStrategy

public QueryStringSigningStrategy()
Method Detail

writeSignature

public String writeSignature(String signature,
                             HttpRequest request,
                             HttpParameters requestParameters)
Description copied from interface: SigningStrategy
Writes an OAuth signature and all remaining required parameters to an HTTP message.

Specified by:
writeSignature in interface SigningStrategy
Parameters:
signature - the signature to write
request - the request to sign
requestParameters - the request parameters
Returns:
whatever has been written to the request, e.g. an Authorization header field


Copyright © 2010. All Rights Reserved.