Class CustomTokenApi


  • public class CustomTokenApi
    extends java.lang.Object
    • 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 ApiException
        Build 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 ApiException
        Build 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 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:
        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 ApiException
        Build 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 ApiException
        Parse 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 ApiException
        Parse 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 ApiException
        Build 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 ApiException
        Parse 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 ApiException
        Parse 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