Package app.kntrl.client.openapi.api
Class TokenApi
- java.lang.Object
-
- app.kntrl.client.openapi.api.TokenApi
-
public class TokenApi extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()java.lang.StringgetPublicKey()Get JWT public key RSA256 public key that can be used to verify access jwt tokens locally.okhttp3.CallgetPublicKeyAsync(ApiCallback<java.lang.String> _callback)Get JWT public key (asynchronously) RSA256 public key that can be used to verify access jwt tokens locally.okhttp3.CallgetPublicKeyCall(ApiCallback _callback)Build call for getPublicKeyApiResponse<java.lang.String>getPublicKeyWithHttpInfo()Get JWT public key RSA256 public key that can be used to verify access jwt tokens locally.RefreshTokenResrefreshToken(RefreshTokenReq refreshTokenReq)Refresh access token Get new access token using refresh token.okhttp3.CallrefreshTokenAsync(RefreshTokenReq refreshTokenReq, ApiCallback<RefreshTokenRes> _callback)Refresh access token (asynchronously) Get new access token using refresh token.okhttp3.CallrefreshTokenCall(RefreshTokenReq refreshTokenReq, ApiCallback _callback)Build call for refreshTokenApiResponse<RefreshTokenRes>refreshTokenWithHttpInfo(RefreshTokenReq refreshTokenReq)Refresh access token Get new access token using refresh token.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
TokenApi
public TokenApi()
-
TokenApi
public TokenApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public java.lang.String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(java.lang.String customBaseUrl)
-
getPublicKeyCall
public okhttp3.Call getPublicKeyCall(ApiCallback _callback) throws ApiException
Build call for getPublicKey- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getPublicKey
public java.lang.String getPublicKey() throws ApiExceptionGet JWT public key RSA256 public key that can be used to verify access jwt tokens locally.- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getPublicKeyWithHttpInfo
public ApiResponse<java.lang.String> getPublicKeyWithHttpInfo() throws ApiException
Get JWT public key RSA256 public key that can be used to verify access jwt tokens locally.- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getPublicKeyAsync
public okhttp3.Call getPublicKeyAsync(ApiCallback<java.lang.String> _callback) throws ApiException
Get JWT public key (asynchronously) RSA256 public key that can be used to verify access jwt tokens locally.- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
refreshTokenCall
public okhttp3.Call refreshTokenCall(RefreshTokenReq refreshTokenReq, ApiCallback _callback) throws ApiException
Build call for refreshToken- Parameters:
refreshTokenReq- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
refreshToken
public RefreshTokenRes refreshToken(RefreshTokenReq refreshTokenReq) throws ApiException
Refresh access token Get new access token using refresh token.- Parameters:
refreshTokenReq- (required)- Returns:
- RefreshTokenRes
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
refreshTokenWithHttpInfo
public ApiResponse<RefreshTokenRes> refreshTokenWithHttpInfo(RefreshTokenReq refreshTokenReq) throws ApiException
Refresh access token Get new access token using refresh token.- Parameters:
refreshTokenReq- (required)- Returns:
- ApiResponse<RefreshTokenRes>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
refreshTokenAsync
public okhttp3.Call refreshTokenAsync(RefreshTokenReq refreshTokenReq, ApiCallback<RefreshTokenRes> _callback) throws ApiException
Refresh access token (asynchronously) Get new access token using refresh token.- Parameters:
refreshTokenReq- (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
-