public class OAuth2Authorizer extends Object implements IAuthorizer
Constructor and Description |
---|
OAuth2Authorizer(String accessToken)
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
|
String |
getAccessToken() |
void |
setAccessToken(String accessToken) |
public OAuth2Authorizer(String accessToken)
accessToken
- the access tokenpublic void authorize(org.apache.http.client.methods.HttpRequestBase httpRequest) throws FMSException
IAuthorizer
authorize
in interface IAuthorizer
FMSException
public void authorize(HttpURLConnection httpUrlConnection) throws FMSException
IAuthorizer
authorize
in interface IAuthorizer
FMSException
public String getAccessToken()
public void setAccessToken(String accessToken)
Copyright © 2017. All rights reserved.