Interface TokenCredential.TokenCredentialCallback
-
- Enclosing interface:
- TokenCredential
public static interface TokenCredential.TokenCredentialCallbackThe callback type to receive the token retrieval result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(java.lang.Throwable throwable)Called when therequestcall could not be executed due an error.voidonSuccess(AccessToken accessToken)Called when the access token is successfully retrieved.
-
-
-
Method Detail
-
onSuccess
void onSuccess(AccessToken accessToken)
Called when the access token is successfully retrieved.- Parameters:
accessToken- The access token.
-
onError
void onError(java.lang.Throwable throwable)
Called when therequestcall could not be executed due an error.- Parameters:
throwable- The reason for failure in retrieving token.
-
-