Package app.kntrl.client.openapi.api
Class CustomTokenApi
- java.lang.Object
-
- app.kntrl.client.openapi.api.CustomTokenApi
-
public class CustomTokenApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CustomTokenApi()CustomTokenApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateCustomBinaryToken(java.lang.String body, java.lang.String secret)(Backend API) Create binary token Creates binary token signed with specified secret.okhttp3.CallcreateCustomBinaryTokenAsync(java.lang.String body, java.lang.String secret, ApiCallback<java.lang.String> _callback)(Backend API) Create binary token (asynchronously) Creates binary token signed with specified secret.okhttp3.CallcreateCustomBinaryTokenCall(java.lang.String body, java.lang.String secret, ApiCallback _callback)Build call for createCustomBinaryTokenApiResponse<java.lang.String>createCustomBinaryTokenWithHttpInfo(java.lang.String body, java.lang.String secret)(Backend API) Create binary token Creates binary token signed with specified secret.java.lang.StringcreateCustomJwtToken(java.util.Map<java.lang.String,java.lang.Object> requestBody)(Backend API) Create JWT token Creates JWT token signed with RSA256 key.okhttp3.CallcreateCustomJwtTokenAsync(java.util.Map<java.lang.String,java.lang.Object> requestBody, ApiCallback<java.lang.String> _callback)(Backend API) Create JWT token (asynchronously) Creates JWT token signed with RSA256 key.okhttp3.CallcreateCustomJwtTokenCall(java.util.Map<java.lang.String,java.lang.Object> requestBody, ApiCallback _callback)Build call for createCustomJwtTokenApiResponse<java.lang.String>createCustomJwtTokenWithHttpInfo(java.util.Map<java.lang.String,java.lang.Object> requestBody)(Backend API) Create JWT token Creates JWT token signed with RSA256 key.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()java.lang.StringgetCustomJwtPublicKey()Get JWT public key RSA256 public key generated from app-secret from config used for signature validation.okhttp3.CallgetCustomJwtPublicKeyAsync(ApiCallback<java.lang.String> _callback)Get JWT public key (asynchronously) RSA256 public key generated from app-secret from config used for signature validation.okhttp3.CallgetCustomJwtPublicKeyCall(ApiCallback _callback)Build call for getCustomJwtPublicKeyApiResponse<java.lang.String>getCustomJwtPublicKeyWithHttpInfo()Get JWT public key RSA256 public key generated from app-secret from config used for signature validation.intgetHostIndex()java.lang.StringparseCustomBinaryToken(java.lang.String body, java.lang.String secret)Parse binary token Validates token signature and extracts token data.okhttp3.CallparseCustomBinaryTokenAsync(java.lang.String body, java.lang.String secret, ApiCallback<java.lang.String> _callback)Parse binary token (asynchronously) Validates token signature and extracts token data.okhttp3.CallparseCustomBinaryTokenCall(java.lang.String body, java.lang.String secret, ApiCallback _callback)Build call for parseCustomBinaryTokenApiResponse<java.lang.String>parseCustomBinaryTokenWithHttpInfo(java.lang.String body, java.lang.String secret)Parse binary token Validates token signature and extracts token data.java.lang.StringparseCustomJwtToken(java.lang.String body)Parse JWT token Validates token signature, expiration time and extracts token data.okhttp3.CallparseCustomJwtTokenAsync(java.lang.String body, ApiCallback<java.lang.String> _callback)Parse JWT token (asynchronously) Validates token signature, expiration time and extracts token data.okhttp3.CallparseCustomJwtTokenCall(java.lang.String body, ApiCallback _callback)Build call for parseCustomJwtTokenApiResponse<java.lang.String>parseCustomJwtTokenWithHttpInfo(java.lang.String body)Parse JWT token Validates token signature, expiration time and extracts token data.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
CustomTokenApi
public CustomTokenApi()
-
CustomTokenApi
public CustomTokenApi(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)
-
createCustomBinaryTokenCall
public okhttp3.Call createCustomBinaryTokenCall(java.lang.String body, java.lang.String secret, ApiCallback _callback) throws ApiExceptionBuild call for createCustomBinaryToken- Parameters:
body- (required)secret- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createCustomBinaryToken
public java.lang.String createCustomBinaryToken(java.lang.String body, java.lang.String secret) throws ApiException(Backend API) Create binary token Creates binary token signed with specified secret. When secret is null - use app secret (specified in kntrl.json5) with SHA256withRSA algorithm. Otherwise - use secret from query and sign with HmacSHA256 algorithm.- Parameters:
body- (required)secret- (optional)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createCustomBinaryTokenWithHttpInfo
public ApiResponse<java.lang.String> createCustomBinaryTokenWithHttpInfo(java.lang.String body, java.lang.String secret) throws ApiException
(Backend API) Create binary token Creates binary token signed with specified secret. When secret is null - use app secret (specified in kntrl.json5) with SHA256withRSA algorithm. Otherwise - use secret from query and sign with HmacSHA256 algorithm.- Parameters:
body- (required)secret- (optional)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createCustomBinaryTokenAsync
public okhttp3.Call createCustomBinaryTokenAsync(java.lang.String body, java.lang.String secret, ApiCallback<java.lang.String> _callback) throws ApiException(Backend API) Create binary token (asynchronously) Creates binary token signed with specified secret. When secret is null - use app secret (specified in kntrl.json5) with SHA256withRSA algorithm. Otherwise - use secret from query and sign with HmacSHA256 algorithm.- Parameters:
body- (required)secret- (optional)_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
-
createCustomJwtTokenCall
public okhttp3.Call createCustomJwtTokenCall(java.util.Map<java.lang.String,java.lang.Object> requestBody, ApiCallback _callback) throws ApiExceptionBuild call for createCustomJwtToken- Parameters:
requestBody- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
createCustomJwtToken
public java.lang.String createCustomJwtToken(java.util.Map<java.lang.String,java.lang.Object> requestBody) throws ApiException(Backend API) Create JWT token Creates JWT token signed with RSA256 key. RSA key is generated from app secret (specified in kntrl.json5)- Parameters:
requestBody- (required)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createCustomJwtTokenWithHttpInfo
public ApiResponse<java.lang.String> createCustomJwtTokenWithHttpInfo(java.util.Map<java.lang.String,java.lang.Object> requestBody) throws ApiException
(Backend API) Create JWT token Creates JWT token signed with RSA256 key. RSA key is generated from app secret (specified in kntrl.json5)- Parameters:
requestBody- (required)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
createCustomJwtTokenAsync
public okhttp3.Call createCustomJwtTokenAsync(java.util.Map<java.lang.String,java.lang.Object> requestBody, ApiCallback<java.lang.String> _callback) throws ApiException(Backend API) Create JWT token (asynchronously) Creates JWT token signed with RSA256 key. RSA key is generated from app secret (specified in kntrl.json5)- Parameters:
requestBody- (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
-
getCustomJwtPublicKeyCall
public okhttp3.Call getCustomJwtPublicKeyCall(ApiCallback _callback) throws ApiException
Build call for getCustomJwtPublicKey- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getCustomJwtPublicKey
public java.lang.String getCustomJwtPublicKey() throws ApiExceptionGet JWT public key RSA256 public key generated from app-secret from config used for signature validation. Can be used to verify jwt tokens locally.- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getCustomJwtPublicKeyWithHttpInfo
public ApiResponse<java.lang.String> getCustomJwtPublicKeyWithHttpInfo() throws ApiException
Get JWT public key RSA256 public key generated from app-secret from config used for signature validation. Can be used to verify jwt tokens locally.- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getCustomJwtPublicKeyAsync
public okhttp3.Call getCustomJwtPublicKeyAsync(ApiCallback<java.lang.String> _callback) throws ApiException
Get JWT public key (asynchronously) RSA256 public key generated from app-secret from config used for signature validation. Can be used to verify 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
-
parseCustomBinaryTokenCall
public okhttp3.Call parseCustomBinaryTokenCall(java.lang.String body, java.lang.String secret, ApiCallback _callback) throws ApiExceptionBuild call for parseCustomBinaryToken- Parameters:
body- (required)secret- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
parseCustomBinaryToken
public java.lang.String parseCustomBinaryToken(java.lang.String body, java.lang.String secret) throws ApiExceptionParse binary token Validates token signature and extracts token data. See /binary API for details.- Parameters:
body- (required)secret- (optional)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
parseCustomBinaryTokenWithHttpInfo
public ApiResponse<java.lang.String> parseCustomBinaryTokenWithHttpInfo(java.lang.String body, java.lang.String secret) throws ApiException
Parse binary token Validates token signature and extracts token data. See /binary API for details.- Parameters:
body- (required)secret- (optional)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
parseCustomBinaryTokenAsync
public okhttp3.Call parseCustomBinaryTokenAsync(java.lang.String body, java.lang.String secret, ApiCallback<java.lang.String> _callback) throws ApiExceptionParse binary token (asynchronously) Validates token signature and extracts token data. See /binary API for details.- Parameters:
body- (required)secret- (optional)_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
-
parseCustomJwtTokenCall
public okhttp3.Call parseCustomJwtTokenCall(java.lang.String body, ApiCallback _callback) throws ApiExceptionBuild call for parseCustomJwtToken- Parameters:
body- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
parseCustomJwtToken
public java.lang.String parseCustomJwtToken(java.lang.String body) throws ApiExceptionParse JWT token Validates token signature, expiration time and extracts token data. See /jwt API for details.- Parameters:
body- (required)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
parseCustomJwtTokenWithHttpInfo
public ApiResponse<java.lang.String> parseCustomJwtTokenWithHttpInfo(java.lang.String body) throws ApiException
Parse JWT token Validates token signature, expiration time and extracts token data. See /jwt API for details.- Parameters:
body- (required)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
parseCustomJwtTokenAsync
public okhttp3.Call parseCustomJwtTokenAsync(java.lang.String body, ApiCallback<java.lang.String> _callback) throws ApiExceptionParse JWT token (asynchronously) Validates token signature, expiration time and extracts token data. See /jwt API for details.- Parameters:
body- (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
-
-