Class TokenFetcher

java.lang.Object
com.netflix.genie.client.security.oauth2.TokenFetcher

public class TokenFetcher extends Object
Class that contains the logic to get OAuth credentials from IDP.
Since:
3.0.0
  • Constructor Details

    • TokenFetcher

      public TokenFetcher(String oauthUrl, String clientId, String clientSecret, String grantType, String scope) throws GenieClientException
      Constructor.
      Parameters:
      oauthUrl - The url of the IDP from where to get the credentials.
      clientId - The clientId to use to get the credentials.
      clientSecret - The clientSecret to use to get the credentials.
      grantType - The type of the grant.
      scope - The scope of the credentials returned.
      Throws:
      GenieClientException - If there is any problem.
  • Method Details