public static interface TokenCredential.TokenCredentialCallback
| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.Throwable throwable)
Called when the
request call could not be executed due an error. |
void |
onSuccess(AccessToken accessToken)
Called when the access token is successfully retrieved.
|
void onSuccess(AccessToken accessToken)
accessToken - The access token.void onError(java.lang.Throwable throwable)
request call could not be executed due an error.throwable - The reason for failure in retrieving token.