Package com.iizix.translate.microsoft
Class AzureAuthToken
java.lang.Object
com.iizix.translate.microsoft.AzureAuthToken
Client to call Cognitive Services Azure Authentication Token service in order to get an access token.
- Author:
- Christopher Mindus
- Constructor SummaryConstructorsConstructorDescription- AzureAuthToken- (String subscriptionKey) Constructs the Azure Authorization Token requestor.
- Method Summary
- Constructor Details- AzureAuthTokenConstructs the Azure Authorization Token requestor.- Parameters:
- subscriptionKey- The subscription key.
- Throws:
- IllegalArgumentException- If the key is not valid.
 
 
- Method Details- getAccessTokenGets the access token.- Returns:
- The token.
- Throws:
- IOException- For errors.