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 Summary
ConstructorDescriptionAzureAuthToken
(String subscriptionKey) Constructs the Azure Authorization Token requestor.Method Summary
Constructor Details
AzureAuthToken
Constructs the Azure Authorization Token requestor.- Parameters:
subscriptionKey
- The subscription key.- Throws:
IllegalArgumentException
- If the key is not valid.
Method Details
getAccessToken
Gets the access token.- Returns:
- The token.
- Throws:
IOException
- For errors.