All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.reinkrul.nuts.auth.ContractApi Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
/*
 * Nuts Auth Service API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package nl.reinkrul.nuts.auth;

import nl.reinkrul.nuts.ApiCallback;
import nl.reinkrul.nuts.ApiClient;
import nl.reinkrul.nuts.ApiException;
import nl.reinkrul.nuts.ApiResponse;
import nl.reinkrul.nuts.Configuration;
import nl.reinkrul.nuts.Pair;
import nl.reinkrul.nuts.ProgressRequestBody;
import nl.reinkrul.nuts.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import nl.reinkrul.nuts.auth.Contract;
import nl.reinkrul.nuts.auth.ContractResponse;
import nl.reinkrul.nuts.auth.DrawUpContractRequest;
import nl.reinkrul.nuts.auth.InlineResponseDefault;
import nl.reinkrul.nuts.auth.SignSessionRequest;
import nl.reinkrul.nuts.auth.SignSessionResponse;
import nl.reinkrul.nuts.auth.SignSessionStatusResponse;
import nl.reinkrul.nuts.auth.SignatureVerificationRequest;
import nl.reinkrul.nuts.auth.SignatureVerificationResponse;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ContractApi {
    private ApiClient localVarApiClient;

    public ContractApi() {
        this(Configuration.getDefaultApiClient());
    }

    public ContractApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    /**
     * Build call for createSignSession
     * @param signSessionRequest  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
201 When the signing session was successfully created. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call createSignSessionCall(SignSessionRequest signSessionRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = signSessionRequest; // create path and map variables String localVarPath = "/internal/auth/v1/signature/session"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/problem+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createSignSessionValidateBeforeCall(SignSessionRequest signSessionRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'signSessionRequest' is set if (signSessionRequest == null) { throw new ApiException("Missing the required parameter 'signSessionRequest' when calling createSignSession(Async)"); } okhttp3.Call localVarCall = createSignSessionCall(signSessionRequest, _callback); return localVarCall; } /** * Create a signing session for a supported means. * Create a signing session for a supported means. error returns: * 400 - one of the parameters has the wrong format * @param signSessionRequest (required) * @return SignSessionResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 When the signing session was successfully created. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public SignSessionResponse createSignSession(SignSessionRequest signSessionRequest) throws ApiException { ApiResponse localVarResp = createSignSessionWithHttpInfo(signSessionRequest); return localVarResp.getData(); } /** * Create a signing session for a supported means. * Create a signing session for a supported means. error returns: * 400 - one of the parameters has the wrong format * @param signSessionRequest (required) * @return ApiResponse<SignSessionResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 When the signing session was successfully created. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public ApiResponse createSignSessionWithHttpInfo(SignSessionRequest signSessionRequest) throws ApiException { okhttp3.Call localVarCall = createSignSessionValidateBeforeCall(signSessionRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create a signing session for a supported means. (asynchronously) * Create a signing session for a supported means. error returns: * 400 - one of the parameters has the wrong format * @param signSessionRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 When the signing session was successfully created. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call createSignSessionAsync(SignSessionRequest signSessionRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createSignSessionValidateBeforeCall(signSessionRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for drawUpContract * @param drawUpContractRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 When the contract was drawn up successfully. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call drawUpContractCall(DrawUpContractRequest drawUpContractRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = drawUpContractRequest; // create path and map variables String localVarPath = "/internal/auth/v1/contract/drawup"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/problem+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call drawUpContractValidateBeforeCall(DrawUpContractRequest drawUpContractRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'drawUpContractRequest' is set if (drawUpContractRequest == null) { throw new ApiException("Missing the required parameter 'drawUpContractRequest' when calling drawUpContract(Async)"); } okhttp3.Call localVarCall = drawUpContractCall(drawUpContractRequest, _callback); return localVarCall; } /** * Draw up a contract using a specified contract template, language and version * Draw up a contract using a specified contract template, language and version error returns: * 400 - one of the parameters has the wrong format * 404 - combination of template, language, and version not found * @param drawUpContractRequest (required) * @return ContractResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 When the contract was drawn up successfully. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public ContractResponse drawUpContract(DrawUpContractRequest drawUpContractRequest) throws ApiException { ApiResponse localVarResp = drawUpContractWithHttpInfo(drawUpContractRequest); return localVarResp.getData(); } /** * Draw up a contract using a specified contract template, language and version * Draw up a contract using a specified contract template, language and version error returns: * 400 - one of the parameters has the wrong format * 404 - combination of template, language, and version not found * @param drawUpContractRequest (required) * @return ApiResponse<ContractResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 When the contract was drawn up successfully. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public ApiResponse drawUpContractWithHttpInfo(DrawUpContractRequest drawUpContractRequest) throws ApiException { okhttp3.Call localVarCall = drawUpContractValidateBeforeCall(drawUpContractRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Draw up a contract using a specified contract template, language and version (asynchronously) * Draw up a contract using a specified contract template, language and version error returns: * 400 - one of the parameters has the wrong format * 404 - combination of template, language, and version not found * @param drawUpContractRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 When the contract was drawn up successfully. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call drawUpContractAsync(DrawUpContractRequest drawUpContractRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = drawUpContractValidateBeforeCall(drawUpContractRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getContractByType * @param contractType (required) * @param version The version of this contract. If omitted, the most recent version will be returned (optional) * @param language (optional, default to nl) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Returns the contract of this type, version, and language -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call getContractByTypeCall(String contractType, String version, String language, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/public/auth/v1/contract/{contractType}" .replaceAll("\\{" + "contractType" + "\\}", localVarApiClient.escapeString(contractType.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (version != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("version", version)); } if (language != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("language", language)); } final String[] localVarAccepts = { "application/json", "application/problem+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getContractByTypeValidateBeforeCall(String contractType, String version, String language, final ApiCallback _callback) throws ApiException { // verify the required parameter 'contractType' is set if (contractType == null) { throw new ApiException("Missing the required parameter 'contractType' when calling getContractByType(Async)"); } okhttp3.Call localVarCall = getContractByTypeCall(contractType, version, language, _callback); return localVarCall; } /** * Get a contract by type and version * Get contract by type and version error returns: * 404 - contract does not exists * @param contractType (required) * @param version The version of this contract. If omitted, the most recent version will be returned (optional) * @param language (optional, default to nl) * @return Contract * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returns the contract of this type, version, and language -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public Contract getContractByType(String contractType, String version, String language) throws ApiException { ApiResponse localVarResp = getContractByTypeWithHttpInfo(contractType, version, language); return localVarResp.getData(); } /** * Get a contract by type and version * Get contract by type and version error returns: * 404 - contract does not exists * @param contractType (required) * @param version The version of this contract. If omitted, the most recent version will be returned (optional) * @param language (optional, default to nl) * @return ApiResponse<Contract> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returns the contract of this type, version, and language -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public ApiResponse getContractByTypeWithHttpInfo(String contractType, String version, String language) throws ApiException { okhttp3.Call localVarCall = getContractByTypeValidateBeforeCall(contractType, version, language, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get a contract by type and version (asynchronously) * Get contract by type and version error returns: * 404 - contract does not exists * @param contractType (required) * @param version The version of this contract. If omitted, the most recent version will be returned (optional) * @param language (optional, default to nl) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Returns the contract of this type, version, and language -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call getContractByTypeAsync(String contractType, String version, String language, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getContractByTypeValidateBeforeCall(contractType, version, language, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getSignSessionStatus * @param sessionID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 When the session is found. Contains the current session status. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call getSignSessionStatusCall(String sessionID, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/internal/auth/v1/signature/session/{sessionID}" .replaceAll("\\{" + "sessionID" + "\\}", localVarApiClient.escapeString(sessionID.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/problem+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getSignSessionStatusValidateBeforeCall(String sessionID, final ApiCallback _callback) throws ApiException { // verify the required parameter 'sessionID' is set if (sessionID == null) { throw new ApiException("Missing the required parameter 'sessionID' when calling getSignSessionStatus(Async)"); } okhttp3.Call localVarCall = getSignSessionStatusCall(sessionID, _callback); return localVarCall; } /** * Get the current status of a signing session * Get the current status of a signing session error returns: * 404 - session could not be found * 500 - internal server error * @param sessionID (required) * @return SignSessionStatusResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 When the session is found. Contains the current session status. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public SignSessionStatusResponse getSignSessionStatus(String sessionID) throws ApiException { ApiResponse localVarResp = getSignSessionStatusWithHttpInfo(sessionID); return localVarResp.getData(); } /** * Get the current status of a signing session * Get the current status of a signing session error returns: * 404 - session could not be found * 500 - internal server error * @param sessionID (required) * @return ApiResponse<SignSessionStatusResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 When the session is found. Contains the current session status. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public ApiResponse getSignSessionStatusWithHttpInfo(String sessionID) throws ApiException { okhttp3.Call localVarCall = getSignSessionStatusValidateBeforeCall(sessionID, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get the current status of a signing session (asynchronously) * Get the current status of a signing session error returns: * 404 - session could not be found * 500 - internal server error * @param sessionID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 When the session is found. Contains the current session status. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call getSignSessionStatusAsync(String sessionID, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getSignSessionStatusValidateBeforeCall(sessionID, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for verifySignature * @param signatureVerificationRequest (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 When the verification could be performed. The response contains the verification result. Note: This status code does not indicate the validity of the signature. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call verifySignatureCall(SignatureVerificationRequest signatureVerificationRequest, final ApiCallback _callback) throws ApiException { Object localVarPostBody = signatureVerificationRequest; // create path and map variables String localVarPath = "/internal/auth/v1/signature/verify"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/problem+json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call verifySignatureValidateBeforeCall(SignatureVerificationRequest signatureVerificationRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'signatureVerificationRequest' is set if (signatureVerificationRequest == null) { throw new ApiException("Missing the required parameter 'signatureVerificationRequest' when calling verifySignature(Async)"); } okhttp3.Call localVarCall = verifySignatureCall(signatureVerificationRequest, _callback); return localVarCall; } /** * Verify a signature in the form of a verifiable presentation * Verify a signature in the form of a verifiable presentation error returns: * 400 - one of the parameters has the wrong format * 500 - internal server error * @param signatureVerificationRequest (required) * @return SignatureVerificationResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 When the verification could be performed. The response contains the verification result. Note: This status code does not indicate the validity of the signature. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public SignatureVerificationResponse verifySignature(SignatureVerificationRequest signatureVerificationRequest) throws ApiException { ApiResponse localVarResp = verifySignatureWithHttpInfo(signatureVerificationRequest); return localVarResp.getData(); } /** * Verify a signature in the form of a verifiable presentation * Verify a signature in the form of a verifiable presentation error returns: * 400 - one of the parameters has the wrong format * 500 - internal server error * @param signatureVerificationRequest (required) * @return ApiResponse<SignatureVerificationResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 When the verification could be performed. The response contains the verification result. Note: This status code does not indicate the validity of the signature. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public ApiResponse verifySignatureWithHttpInfo(SignatureVerificationRequest signatureVerificationRequest) throws ApiException { okhttp3.Call localVarCall = verifySignatureValidateBeforeCall(signatureVerificationRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Verify a signature in the form of a verifiable presentation (asynchronously) * Verify a signature in the form of a verifiable presentation error returns: * 400 - one of the parameters has the wrong format * 500 - internal server error * @param signatureVerificationRequest (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 When the verification could be performed. The response contains the verification result. Note: This status code does not indicate the validity of the signature. -
0 Default return values follow Problem Details for HTTP APIs as specified in [RFC7807](https://tools.ietf.org/html/rfc7807). Currently, return values contain the following members of a problem details object: - \"title\" (string) - A short, human-readable summary of the problem type. - \"status\" (number) - The HTTP status code generated by the origin server for this occurrence of the problem. - \"detail\" (string) - A human-readable explanation specific to this occurrence of the problem. -
*/ public okhttp3.Call verifySignatureAsync(SignatureVerificationRequest signatureVerificationRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = verifySignatureValidateBeforeCall(signatureVerificationRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy