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
IAuthorizerauthorize in interface IAuthorizerFMSExceptionpublic void authorize(HttpURLConnection httpUrlConnection) throws FMSException
IAuthorizerauthorize in interface IAuthorizerFMSExceptionpublic String getAccessToken()
public void setAccessToken(String accessToken)
Copyright © 2017. All rights reserved.