Package com.datadog.api.client.auth
Class OAuth
java.lang.Object
com.datadog.api.client.auth.OAuth
- All Implemented Interfaces:
Authentication
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class OAuth
extends Object
implements Authentication
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToParams(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.OAuth2AccessTokencom.github.scribejava.core.model.OAuth2AccessTokenobtainAccessToken(String refreshToken) com.github.scribejava.core.model.OAuth2AccessTokensetAccessToken(com.github.scribejava.core.model.OAuth2AccessToken accessToken) setAccessToken(String accessToken) voidsetBasePath(String basePath) setCredentials(String clientId, String clientSecret, Boolean debug) usePasswordFlow(String username, String password)
-
Constructor Details
-
OAuth
-
-
Method Details
-
applyToParams
public void applyToParams(List<Pair> queryParams, Map<String, String> headerParams, Map<String, throws ApiExceptionString> cookieParams, String payload, String method, URI uri) Description copied from interface:AuthenticationApply authentication settings to header and query params.- Specified by:
applyToParamsin interfaceAuthentication- Parameters:
queryParams- List of query parametersheaderParams- Map of header parameterscookieParams- Map of cookie parameterspayload- Raw payloadmethod- HTTP method to authenticateuri- URI to authenticate- Throws:
ApiException- If the settings can't be applied
-
renewAccessToken
- Throws:
ApiException
-
obtainAccessToken
public com.github.scribejava.core.model.OAuth2AccessToken obtainAccessToken(String refreshToken) throws ApiException - Throws:
ApiException
-
getAccessToken
public com.github.scribejava.core.model.OAuth2AccessToken getAccessToken() -
setAccessToken
-
setAccessToken
-
setScope
-
setCredentials
-
usePasswordFlow
-
useAuthorizationCodeFlow
-
setFlow
-
setBasePath
-