oauth.signpost.signature
Class SignatureBaseString

java.lang.Object
  extended by oauth.signpost.signature.SignatureBaseString

public class SignatureBaseString
extends Object


Constructor Summary
SignatureBaseString(HttpRequest request, HttpParameters requestParameters)
          Constructs a new SBS instance that will operate on the given request object and parameter set.
 
Method Summary
 String generate()
          Builds the signature base string from the data this instance was configured with.
 String normalizeRequestParameters()
          Normalizes the set of request parameters this instance was configured with, as per OAuth spec section 9.1.1.
 String normalizeRequestUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureBaseString

public SignatureBaseString(HttpRequest request,
                           HttpParameters requestParameters)
Constructs a new SBS instance that will operate on the given request object and parameter set.

Parameters:
request - the HTTP request
requestParameters - the set of request parameters from the Authorization header, query string and form body
Method Detail

generate

public String generate()
                throws OAuthMessageSignerException
Builds the signature base string from the data this instance was configured with.

Returns:
the signature base string
Throws:
OAuthMessageSignerException

normalizeRequestUrl

public String normalizeRequestUrl()
                           throws URISyntaxException
Throws:
URISyntaxException

normalizeRequestParameters

public String normalizeRequestParameters()
                                  throws IOException
Normalizes the set of request parameters this instance was configured with, as per OAuth spec section 9.1.1.

Parameters:
parameters - the set of request parameters
Returns:
the normalized params string
Throws:
IOException


Copyright © 2010. All Rights Reserved.