Class TokenApi


  • public class TokenApi
    extends java.lang.Object
    • 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 ApiException
        Get 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