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 IAuthorizer
FMSException
public void authorize(HttpURLConnection httpUrlConnection) throws FMSException
IAuthorizer
authorize
in interface IAuthorizer
FMSException
Copyright © 2021. All Rights Reserved.