Package oauth.signpost.signature
Class SignatureBaseString
java.lang.Object
oauth.signpost.signature.SignatureBaseString
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSignatureBaseString
(HttpRequest request, HttpParameters requestParameters) Constructs a new SBS instance that will operate on the given request object and parameter set. -
Method Summary
Modifier and TypeMethodDescriptiongenerate()
Builds the signature base string from the data this instance was configured with.Normalizes the set of request parameters this instance was configured with, as per OAuth spec section 9.1.1.
-
Field Details
-
request
-
requestParameters
-
-
Constructor Details
-
SignatureBaseString
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 Details
-
generate
Builds the signature base string from the data this instance was configured with.- Returns:
- the signature base string
- Throws:
OAuthMessageSignerException
-
normalizeRequestUrl
- Throws:
URISyntaxException
-
normalizeRequestParameters
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
-