Package app.kntrl.client.openapi.api
Class AuthorisationApi
- java.lang.Object
-
- app.kntrl.client.openapi.api.AuthorisationApi
-
public class AuthorisationApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AuthorisationApi()AuthorisationApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizeResauthorize(AuthorizeReq authorizeReq)(Backend API) authorize session Validates token and executes rate limiter.okhttp3.CallauthorizeAsync(AuthorizeReq authorizeReq, ApiCallback<AuthorizeRes> _callback)(Backend API) authorize session (asynchronously) Validates token and executes rate limiter.okhttp3.CallauthorizeCall(AuthorizeReq authorizeReq, ApiCallback _callback)Build call for authorizeApiResponse<AuthorizeRes>authorizeWithHttpInfo(AuthorizeReq authorizeReq)(Backend API) authorize session Validates token and executes rate limiter.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()AuthorizeReslimit(RateLimiterReq rateLimiterReq)(Backend API) validate by rate-limiter Executes rate limiter if no authorisation is required.okhttp3.CalllimitAsync(RateLimiterReq rateLimiterReq, ApiCallback<AuthorizeRes> _callback)(Backend API) validate by rate-limiter (asynchronously) Executes rate limiter if no authorisation is required.okhttp3.CalllimitCall(RateLimiterReq rateLimiterReq, ApiCallback _callback)Build call for limitApiResponse<AuthorizeRes>limitWithHttpInfo(RateLimiterReq rateLimiterReq)(Backend API) validate by rate-limiter Executes rate limiter if no authorisation is required.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
AuthorisationApi
public AuthorisationApi()
-
AuthorisationApi
public AuthorisationApi(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)
-
authorizeCall
public okhttp3.Call authorizeCall(AuthorizeReq authorizeReq, ApiCallback _callback) throws ApiException
Build call for authorize- Parameters:
authorizeReq- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
authorize
public AuthorizeRes authorize(AuthorizeReq authorizeReq) throws ApiException
(Backend API) authorize session Validates token and executes rate limiter. This API should be called by backend.- Parameters:
authorizeReq- (required)- Returns:
- AuthorizeRes
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
authorizeWithHttpInfo
public ApiResponse<AuthorizeRes> authorizeWithHttpInfo(AuthorizeReq authorizeReq) throws ApiException
(Backend API) authorize session Validates token and executes rate limiter. This API should be called by backend.- Parameters:
authorizeReq- (required)- Returns:
- ApiResponse<AuthorizeRes>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
authorizeAsync
public okhttp3.Call authorizeAsync(AuthorizeReq authorizeReq, ApiCallback<AuthorizeRes> _callback) throws ApiException
(Backend API) authorize session (asynchronously) Validates token and executes rate limiter. This API should be called by backend.- Parameters:
authorizeReq- (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
-
limitCall
public okhttp3.Call limitCall(RateLimiterReq rateLimiterReq, ApiCallback _callback) throws ApiException
Build call for limit- Parameters:
rateLimiterReq- (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
limit
public AuthorizeRes limit(RateLimiterReq rateLimiterReq) throws ApiException
(Backend API) validate by rate-limiter Executes rate limiter if no authorisation is required. Otherwise, this works similarly to /authorise.- Parameters:
rateLimiterReq- (required)- Returns:
- AuthorizeRes
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
limitWithHttpInfo
public ApiResponse<AuthorizeRes> limitWithHttpInfo(RateLimiterReq rateLimiterReq) throws ApiException
(Backend API) validate by rate-limiter Executes rate limiter if no authorisation is required. Otherwise, this works similarly to /authorise.- Parameters:
rateLimiterReq- (required)- Returns:
- ApiResponse<AuthorizeRes>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
limitAsync
public okhttp3.Call limitAsync(RateLimiterReq rateLimiterReq, ApiCallback<AuthorizeRes> _callback) throws ApiException
(Backend API) validate by rate-limiter (asynchronously) Executes rate limiter if no authorisation is required. Otherwise, this works similarly to /authorise.- Parameters:
rateLimiterReq- (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
-
-