public class OAuthApi
extends java.lang.Object
| Constructor and Description |
|---|
OAuthApi() |
OAuthApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
JwtModel |
createToken(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String grantType)
Creates a token when the supplied client credentials are valid
|
okhttp3.Call |
createTokenAsync(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String grantType,
ApiCallback<JwtModel> _callback)
(asynchronously)
Creates a token when the supplied client credentials are valid
|
okhttp3.Call |
createTokenCall(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String grantType,
ApiCallback _callback)
Build call for createToken
|
ApiResponse<JwtModel> |
createTokenWithHttpInfo(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String grantType)
Creates a token when the supplied client credentials are valid
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public OAuthApi()
public OAuthApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call createTokenCall(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String grantType,
ApiCallback _callback)
throws ApiException
clientId - API Client-Id or Username (optional)clientSecret - API Client secret or password (optional)grantType - Other grant types are not available (optional, default to "client_credentials")_callback - Callback for upload/download progressApiException - If fail to serialize the request body object| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad request | - |
public JwtModel createToken(java.lang.String clientId, java.lang.String clientSecret, java.lang.String grantType) throws ApiException
clientId - API Client-Id or Username (optional)clientSecret - API Client secret or password (optional)grantType - Other grant types are not available (optional, default to "client_credentials")ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad request | - |
public ApiResponse<JwtModel> createTokenWithHttpInfo(java.lang.String clientId, java.lang.String clientSecret, java.lang.String grantType) throws ApiException
clientId - API Client-Id or Username (optional)clientSecret - API Client secret or password (optional)grantType - Other grant types are not available (optional, default to "client_credentials")ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad request | - |
public okhttp3.Call createTokenAsync(java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String grantType,
ApiCallback<JwtModel> _callback)
throws ApiException
clientId - API Client-Id or Username (optional)clientSecret - API Client secret or password (optional)grantType - Other grant types are not available (optional, default to "client_credentials")_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body object| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad request | - |
Copyright © 2021. All rights reserved.