Class TokenFetcher
java.lang.Object
com.netflix.genie.client.security.oauth2.TokenFetcher
Class that contains the logic to get OAuth credentials from IDP.
- Since:
- 3.0.0
-
Constructor Summary
-
Method Summary
-
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
-
getToken
Method that returns the OAuth credentials.- Returns:
- An access token object.
- Throws:
GenieClientException
- If there is any problem.
-