Class 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 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