Authenticationpublic class OAuth extends Object implements Authentication
| Constructor | Description |
|---|---|
OAuth(Configuration configuration,
String appSid,
String appKey) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
applyToParams(List<Pair> queryParams,
Map<String,String> headerParams) |
Apply authentication settings to header and query params.
|
String |
getAccessToken() |
|
void |
setAccessToken(String accessToken) |
public OAuth(Configuration configuration, String appSid, String appKey)
public String getAccessToken()
public void setAccessToken(String accessToken)
public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams) throws ApiException
AuthenticationapplyToParams in interface AuthenticationqueryParams - List of query parametersheaderParams - Map of header parametersApiException - If fail to apply authrorization to query or header paramsCopyright © 2025. All rights reserved.