Package oauth.signpost.signature
Class SignatureBaseString
- java.lang.Object
-
- oauth.signpost.signature.SignatureBaseString
-
public class SignatureBaseString extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private HttpRequestrequestprivate HttpParametersrequestParameters
-
Constructor Summary
Constructors Constructor Description SignatureBaseString(HttpRequest request, HttpParameters requestParameters)Constructs a new SBS instance that will operate on the given request object and parameter set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringgenerate()Builds the signature base string from the data this instance was configured with.java.lang.StringnormalizeRequestParameters()Normalizes the set of request parameters this instance was configured with, as per OAuth spec section 9.1.1.java.lang.StringnormalizeRequestUrl()
-
-
-
Field Detail
-
request
private HttpRequest request
-
requestParameters
private HttpParameters requestParameters
-
-
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 requestrequestParameters- the set of request parameters from the Authorization header, query string and form body
-
-
Method Detail
-
generate
public java.lang.String generate() throws OAuthMessageSignerExceptionBuilds the signature base string from the data this instance was configured with.- Returns:
- the signature base string
- Throws:
OAuthMessageSignerException
-
normalizeRequestUrl
public java.lang.String normalizeRequestUrl() throws java.net.URISyntaxException- Throws:
java.net.URISyntaxException
-
normalizeRequestParameters
public java.lang.String normalizeRequestParameters() throws java.io.IOExceptionNormalizes 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:
java.io.IOException
-
-