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 Details

  • Method Details

    • applyToParams

      public void applyToParams(List<Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri) throws ApiException
      Description copied from interface: Authentication
      Apply authentication settings to header and query params.
      Specified by:
      applyToParams in interface Authentication
      Parameters:
      queryParams - List of query parameters
      headerParams - Map of header parameters
      cookieParams - Map of cookie parameters
      payload - Raw payload
      method - HTTP method to authenticate
      uri - URI to authenticate
      Throws:
      ApiException - If the settings can't be applied
    • renewAccessToken

      public com.github.scribejava.core.model.OAuth2AccessToken renewAccessToken() throws ApiException
      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

      public OAuth setAccessToken(com.github.scribejava.core.model.OAuth2AccessToken accessToken)
    • setAccessToken

      public OAuth setAccessToken(String accessToken)
    • setScope

      public OAuth setScope(String scope)
    • setCredentials

      public OAuth setCredentials(String clientId, String clientSecret, Boolean debug)
    • usePasswordFlow

      public OAuth usePasswordFlow(String username, String password)
    • useAuthorizationCodeFlow

      public OAuth useAuthorizationCodeFlow(String code)
    • setFlow

      public OAuth setFlow(OAuthFlow flow)
    • setBasePath

      public void setBasePath(String basePath)