@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class OAuth extends Object implements Authentication
| Constructor and Description |
|---|
OAuth(String basePath,
String tokenUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyToParams(List<Pair> queryParams,
Map<String,String> headerParams,
Map<String,String> cookieParams,
String payload,
String method,
URI uri)
Apply authentication settings to header and query params.
|
com.github.scribejava.core.model.OAuth2AccessToken |
getAccessToken() |
com.github.scribejava.core.model.OAuth2AccessToken |
obtainAccessToken(String refreshToken) |
com.github.scribejava.core.model.OAuth2AccessToken |
renewAccessToken() |
OAuth |
setAccessToken(com.github.scribejava.core.model.OAuth2AccessToken accessToken) |
OAuth |
setAccessToken(String accessToken) |
void |
setBasePath(String basePath) |
OAuth |
setCredentials(String clientId,
String clientSecret,
Boolean debug) |
OAuth |
setFlow(OAuthFlow flow) |
OAuth |
setScope(String scope) |
OAuth |
useAuthorizationCodeFlow(String code) |
OAuth |
usePasswordFlow(String username,
String password) |
public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri) throws ApiException
AuthenticationapplyToParams in interface AuthenticationqueryParams - List of query parametersheaderParams - Map of header parameterscookieParams - Map of cookie parameterspayload - Raw payloadmethod - HTTP method to authenticateuri - URI to authenticateApiException - If the settings can't be appliedpublic com.github.scribejava.core.model.OAuth2AccessToken renewAccessToken()
throws ApiException
ApiExceptionpublic com.github.scribejava.core.model.OAuth2AccessToken obtainAccessToken(String refreshToken) throws ApiException
ApiExceptionpublic com.github.scribejava.core.model.OAuth2AccessToken getAccessToken()
public OAuth setAccessToken(com.github.scribejava.core.model.OAuth2AccessToken accessToken)
public void setBasePath(String basePath)
Copyright © 2024. All rights reserved.