oauth.signpost.signature
Class QueryStringSigningStrategy
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryStringSigningStrategy
public QueryStringSigningStrategy()
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 writerequest
- the request to signrequestParameters
- the request parameters
- Returns:
- whatever has been written to the request, e.g. an Authorization
header field
Copyright © 2010. All Rights Reserved.