Package com.mypurecloud.sdk.v2.api
Class TokensApiAsync
java.lang.Object
com.mypurecloud.sdk.v2.api.TokensApiAsync
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteTokenAsync(DeleteTokenRequest request, AsyncApiCallback<Void> callback) Delete all auth tokens for the specified user.deleteTokenAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback) Delete all auth tokens for the specified user.deleteTokensMeAsync(DeleteTokensMeRequest request, AsyncApiCallback<Void> callback) Delete auth token used to make the request.deleteTokensMeAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback) Delete auth token used to make the request.getTokensMeAsync(GetTokensMeRequest request, AsyncApiCallback<TokenInfo> callback) Fetch information about the current tokengetTokensMeAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<TokenInfo>> callback) Fetch information about the current tokengetTokensTimeoutAsync(GetTokensTimeoutRequest request, AsyncApiCallback<IdleTokenTimeout> callback) Get the current Idle Token Timeout ValuegetTokensTimeoutAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<IdleTokenTimeout>> callback) Get the current Idle Token Timeout ValueheadTokensMeAsync(HeadTokensMeRequest request, AsyncApiCallback<Void> callback) Verify user tokenheadTokensMeAsync(ApiRequest<Void> request, AsyncApiCallback<ApiResponse<Void>> callback) Verify user tokenputTokensTimeoutAsync(PutTokensTimeoutRequest request, AsyncApiCallback<IdleTokenTimeout> callback) Update or Enable/Disable the Idle Token TimeoutputTokensTimeoutAsync(ApiRequest<IdleTokenTimeout> request, AsyncApiCallback<ApiResponse<IdleTokenTimeout>> callback) Update or Enable/Disable the Idle Token Timeout
-
Constructor Details
-
TokensApiAsync
public TokensApiAsync() -
TokensApiAsync
-
-
Method Details
-
deleteTokenAsync
Delete all auth tokens for the specified user.- Parameters:
request- the request objectcallback- 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 objectcallback- 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 objectcallback- 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 objectcallback- 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 objectcallback- 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 objectcallback- 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 objectcallback- 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 objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
headTokensMeAsync
Verify user token- Parameters:
request- the request objectcallback- 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 objectcallback- 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 objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-
putTokensTimeoutAsync
public Future<ApiResponse<IdleTokenTimeout>> putTokensTimeoutAsync(ApiRequest<IdleTokenTimeout> request, AsyncApiCallback<ApiResponse<IdleTokenTimeout>> callback) Update or Enable/Disable the Idle Token Timeout- Parameters:
request- the request objectcallback- the action to perform when the request is completed- Returns:
- the future indication when the request has completed
-