Interface TokenCredential.TokenCredentialCallback

  • Enclosing interface:
    TokenCredential

    public static interface TokenCredential.TokenCredentialCallback
    The callback type to receive the token retrieval result.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method 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.
    • 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 the request call could not be executed due an error.
        Parameters:
        throwable - The reason for failure in retrieving token.