public class OAuthAuthorizer extends Object implements IAuthorizer
| Constructor and Description |
|---|
OAuthAuthorizer(String consumerKey,
String consumerSecret,
String accessToken,
String accessTokenSecret)
To create the oAuth authorizer object
|
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(org.apache.http.client.methods.HttpRequestBase httpRequest)
This method will authorise an http request using the selected authorisation mechanism
|
void |
authorize(HttpURLConnection httpUrlConnection)
Authorize a http url connection using Signpost
|
public OAuthAuthorizer(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret)
consumerKey - the consumer keyconsumerSecret - the consumer secretaccessToken - the access tokenaccessTokenSecret - the access token secretpublic void authorize(org.apache.http.client.methods.HttpRequestBase httpRequest)
throws FMSException
authorize in interface IAuthorizerFMSExceptionpublic void authorize(HttpURLConnection httpUrlConnection) throws FMSException
IAuthorizerauthorize in interface IAuthorizerFMSExceptionCopyright © 2017. All rights reserved.