Class TokensApiAsync

java.lang.Object
com.mypurecloud.sdk.v2.api.TokensApiAsync

public class TokensApiAsync extends Object
  • Constructor Details

    • TokensApiAsync

      public TokensApiAsync()
    • TokensApiAsync

      public TokensApiAsync(ApiClient apiClient)
  • Method Details

    • deleteTokenAsync

      public Future<Void> deleteTokenAsync(DeleteTokenRequest request, AsyncApiCallback<Void> callback)
      Delete all auth tokens for the specified user.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteTokenAsync

      public Future<ApiResponse<Void>> deleteTokenAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback)
      Delete all auth tokens for the specified user.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteTokensMeAsync

      public Future<Void> deleteTokensMeAsync(DeleteTokensMeRequest request, AsyncApiCallback<Void> callback)
      Delete auth token used to make the request.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • deleteTokensMeAsync

      public Future<ApiResponse<Void>> deleteTokensMeAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback)
      Delete auth token used to make the request.
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getTokensMeAsync

      public Future<TokenInfo> getTokensMeAsync(GetTokensMeRequest request, AsyncApiCallback<TokenInfo> callback)
      Fetch information about the current token
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getTokensMeAsync

      public Future<ApiResponse<TokenInfo>> getTokensMeAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<TokenInfo>> callback)
      Fetch information about the current token
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getTokensTimeoutAsync

      public Future<IdleTokenTimeout> getTokensTimeoutAsync(GetTokensTimeoutRequest request, AsyncApiCallback<IdleTokenTimeout> callback)
      Get the current Idle Token Timeout Value
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • getTokensTimeoutAsync

      public Future<ApiResponse<IdleTokenTimeout>> getTokensTimeoutAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<IdleTokenTimeout>> callback)
      Get the current Idle Token Timeout Value
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • headTokensMeAsync

      public Future<Void> headTokensMeAsync(HeadTokensMeRequest request, AsyncApiCallback<Void> callback)
      Verify user token
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • headTokensMeAsync

      public Future<ApiResponse<Void>> headTokensMeAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback)
      Verify user token
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putTokensTimeoutAsync

      public Future<IdleTokenTimeout> putTokensTimeoutAsync(PutTokensTimeoutRequest request, AsyncApiCallback<IdleTokenTimeout> callback)
      Update or Enable/Disable the Idle Token Timeout
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed
    • putTokensTimeoutAsync

      Update or Enable/Disable the Idle Token Timeout
      Parameters:
      request - the request object
      callback - the action to perform when the request is completed
      Returns:
      the future indication when the request has completed