Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Nuts Verifiable Credential API spec
* API specification for common operations on Verifiable credentials. It allows the three roles, issuer, holder and verifier to issue, revoke, search, present and verify credentials.
*
* The version of the OpenAPI document: 2.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.vcr.v2;
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.vcr.v2.CreateVPRequest;
import nl.reinkrul.nuts.vcr.v2.CredentialIssuer;
import nl.reinkrul.nuts.vcr.v2.InlineResponseDefault;
import nl.reinkrul.nuts.vcr.v2.IssueVCRequest;
import nl.reinkrul.nuts.vcr.v2.Revocation;
import nl.reinkrul.nuts.vcr.v2.SearchVCRequest;
import nl.reinkrul.nuts.vcr.v2.SearchVCResults;
import nl.reinkrul.nuts.vcr.v2.VCVerificationRequest;
import nl.reinkrul.nuts.vcr.v2.VCVerificationResult;
import nl.reinkrul.nuts.vcr.v2.VPVerificationRequest;
import nl.reinkrul.nuts.vcr.v2.VPVerificationResult;
import nl.reinkrul.nuts.vcr.v2.VerifiableCredential;
import nl.reinkrul.nuts.vcr.v2.VerifiablePresentation;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class CredentialApi {
private ApiClient localVarApiClient;
public CredentialApi() {
this(Configuration.getDefaultApiClient());
}
public CredentialApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for createVP
* @param createVPRequest (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
The verifiable presentation.
-
*/
public okhttp3.Call createVPCall(CreateVPRequest createVPRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = createVPRequest;
// create path and map variables
String localVarPath = "/internal/vcr/v2/holder/vp";
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"
};
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 createVPValidateBeforeCall(CreateVPRequest createVPRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'createVPRequest' is set
if (createVPRequest == null) {
throw new ApiException("Missing the required parameter 'createVPRequest' when calling createVP(Async)");
}
okhttp3.Call localVarCall = createVPCall(createVPRequest, _callback);
return localVarCall;
}
/**
* Create a new Verifiable Presentation for a set of Verifiable Credentials.
* Given a list of VCs, create a new presentation. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param createVPRequest (required)
* @return VerifiablePresentation
* @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
The verifiable presentation.
-
*/
public VerifiablePresentation createVP(CreateVPRequest createVPRequest) throws ApiException {
ApiResponse localVarResp = createVPWithHttpInfo(createVPRequest);
return localVarResp.getData();
}
/**
* Create a new Verifiable Presentation for a set of Verifiable Credentials.
* Given a list of VCs, create a new presentation. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param createVPRequest (required)
* @return ApiResponse<VerifiablePresentation>
* @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
The verifiable presentation.
-
*/
public ApiResponse createVPWithHttpInfo(CreateVPRequest createVPRequest) throws ApiException {
okhttp3.Call localVarCall = createVPValidateBeforeCall(createVPRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create a new Verifiable Presentation for a set of Verifiable Credentials. (asynchronously)
* Given a list of VCs, create a new presentation. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param createVPRequest (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
The verifiable presentation.
-
*/
public okhttp3.Call createVPAsync(CreateVPRequest createVPRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createVPValidateBeforeCall(createVPRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for issueVC
* @param issueVCRequest (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
New VC has been created successfully. Returns the Verifiable Credential.
-
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 issueVCCall(IssueVCRequest issueVCRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = issueVCRequest;
// create path and map variables
String localVarPath = "/internal/vcr/v2/issuer/vc";
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 issueVCValidateBeforeCall(IssueVCRequest issueVCRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'issueVCRequest' is set
if (issueVCRequest == null) {
throw new ApiException("Missing the required parameter 'issueVCRequest' when calling issueVC(Async)");
}
okhttp3.Call localVarCall = issueVCCall(issueVCRequest, _callback);
return localVarCall;
}
/**
* Issues a new Verifiable Credential
* Issues a new Verifiable Credential for provided type in the context. error returns: * 400 - One or more of the given parameters are invalid * 412 - A private transaction is issued for a subject that does not have a NutsComm address * 500 - An error occurred while processing the request
* @param issueVCRequest (required)
* @return VerifiableCredential
* @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
New VC has been created successfully. Returns the Verifiable Credential.
-
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 VerifiableCredential issueVC(IssueVCRequest issueVCRequest) throws ApiException {
ApiResponse localVarResp = issueVCWithHttpInfo(issueVCRequest);
return localVarResp.getData();
}
/**
* Issues a new Verifiable Credential
* Issues a new Verifiable Credential for provided type in the context. error returns: * 400 - One or more of the given parameters are invalid * 412 - A private transaction is issued for a subject that does not have a NutsComm address * 500 - An error occurred while processing the request
* @param issueVCRequest (required)
* @return ApiResponse<VerifiableCredential>
* @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
New VC has been created successfully. Returns the Verifiable Credential.
-
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 issueVCWithHttpInfo(IssueVCRequest issueVCRequest) throws ApiException {
okhttp3.Call localVarCall = issueVCValidateBeforeCall(issueVCRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Issues a new Verifiable Credential (asynchronously)
* Issues a new Verifiable Credential for provided type in the context. error returns: * 400 - One or more of the given parameters are invalid * 412 - A private transaction is issued for a subject that does not have a NutsComm address * 500 - An error occurred while processing the request
* @param issueVCRequest (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
New VC has been created successfully. Returns the Verifiable Credential.
-
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 issueVCAsync(IssueVCRequest issueVCRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = issueVCValidateBeforeCall(issueVCRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for listTrusted
* @param credentialType URL encoded Verifiable Credential Type. (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
List of trusted issuers is returned.
-
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 listTrustedCall(String credentialType, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/internal/vcr/v2/verifier/{credentialType}/trusted"
.replaceAll("\\{" + "credentialType" + "\\}", localVarApiClient.escapeString(credentialType.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 listTrustedValidateBeforeCall(String credentialType, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'credentialType' is set
if (credentialType == null) {
throw new ApiException("Missing the required parameter 'credentialType' when calling listTrusted(Async)");
}
okhttp3.Call localVarCall = listTrustedCall(credentialType, _callback);
return localVarCall;
}
/**
* List all trusted issuers for a given credential type
* List all trusted issuers for a given credential type. error returns: * 400 - Malformed credential type * 404 - Unknown credential type
* @param credentialType URL encoded Verifiable Credential Type. (required)
* @return List<String>
* @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
List of trusted issuers is returned.
-
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 List listTrusted(String credentialType) throws ApiException {
ApiResponse> localVarResp = listTrustedWithHttpInfo(credentialType);
return localVarResp.getData();
}
/**
* List all trusted issuers for a given credential type
* List all trusted issuers for a given credential type. error returns: * 400 - Malformed credential type * 404 - Unknown credential type
* @param credentialType URL encoded Verifiable Credential Type. (required)
* @return ApiResponse<List<String>>
* @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
List of trusted issuers is returned.
-
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> listTrustedWithHttpInfo(String credentialType) throws ApiException {
okhttp3.Call localVarCall = listTrustedValidateBeforeCall(credentialType, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* List all trusted issuers for a given credential type (asynchronously)
* List all trusted issuers for a given credential type. error returns: * 400 - Malformed credential type * 404 - Unknown credential type
* @param credentialType URL encoded Verifiable Credential Type. (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
List of trusted issuers is returned.
-
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 listTrustedAsync(String credentialType, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = listTrustedValidateBeforeCall(credentialType, _callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for listUntrusted
* @param credentialType URL encoded Verifiable Credential Type. (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
List of untrusted issuers is returned.
-
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 listUntrustedCall(String credentialType, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/internal/vcr/v2/verifier/{credentialType}/untrusted"
.replaceAll("\\{" + "credentialType" + "\\}", localVarApiClient.escapeString(credentialType.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 listUntrustedValidateBeforeCall(String credentialType, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'credentialType' is set
if (credentialType == null) {
throw new ApiException("Missing the required parameter 'credentialType' when calling listUntrusted(Async)");
}
okhttp3.Call localVarCall = listUntrustedCall(credentialType, _callback);
return localVarCall;
}
/**
* List all untrusted issuers for a given credential type
* List all untrusted issuers for a given credential type. error returns: * 400 - Malformed credential type * 404 - Unknown credential type
* @param credentialType URL encoded Verifiable Credential Type. (required)
* @return List<String>
* @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
List of untrusted issuers is returned.
-
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 List listUntrusted(String credentialType) throws ApiException {
ApiResponse> localVarResp = listUntrustedWithHttpInfo(credentialType);
return localVarResp.getData();
}
/**
* List all untrusted issuers for a given credential type
* List all untrusted issuers for a given credential type. error returns: * 400 - Malformed credential type * 404 - Unknown credential type
* @param credentialType URL encoded Verifiable Credential Type. (required)
* @return ApiResponse<List<String>>
* @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
List of untrusted issuers is returned.
-
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> listUntrustedWithHttpInfo(String credentialType) throws ApiException {
okhttp3.Call localVarCall = listUntrustedValidateBeforeCall(credentialType, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* List all untrusted issuers for a given credential type (asynchronously)
* List all untrusted issuers for a given credential type. error returns: * 400 - Malformed credential type * 404 - Unknown credential type
* @param credentialType URL encoded Verifiable Credential Type. (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
List of untrusted issuers is returned.
-
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 listUntrustedAsync(String credentialType, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = listUntrustedValidateBeforeCall(credentialType, _callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for resolveVC
* @param id URL encoded ID. (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
Credential has been found and is returned.
-
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 resolveVCCall(String id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/internal/vcr/v2/vc/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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 resolveVCValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling resolveVC(Async)");
}
okhttp3.Call localVarCall = resolveVCCall(id, _callback);
return localVarCall;
}
/**
* Resolves a verifiable credential
* Returns the resolved credential, regardless of its revocation/trust state. error returns: * 404 - Corresponding credential could not be found * 500 - An error occurred while processing the request
* @param id URL encoded ID. (required)
* @return VerifiableCredential
* @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
Credential has been found and is returned.
-
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 VerifiableCredential resolveVC(String id) throws ApiException {
ApiResponse localVarResp = resolveVCWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Resolves a verifiable credential
* Returns the resolved credential, regardless of its revocation/trust state. error returns: * 404 - Corresponding credential could not be found * 500 - An error occurred while processing the request
* @param id URL encoded ID. (required)
* @return ApiResponse<VerifiableCredential>
* @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
Credential has been found and is returned.
-
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 resolveVCWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = resolveVCValidateBeforeCall(id, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Resolves a verifiable credential (asynchronously)
* Returns the resolved credential, regardless of its revocation/trust state. error returns: * 404 - Corresponding credential could not be found * 500 - An error occurred while processing the request
* @param id URL encoded ID. (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
Credential has been found and is returned.
-
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 resolveVCAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = resolveVCValidateBeforeCall(id, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for revokeVC
* @param id URL encoded ID. (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
Revocation has been processed locally. It has also been published to the network.
-
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 revokeVCCall(String id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/internal/vcr/v2/issuer/vc/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call revokeVCValidateBeforeCall(String id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling revokeVC(Async)");
}
okhttp3.Call localVarCall = revokeVCCall(id, _callback);
return localVarCall;
}
/**
* Revoke an issued credential
* Revoke a credential. error returns: * 400 - Credential can't be revoked. Most likely due to a missing private key. * 404 - Credential is not found * 409 - Credential has already been revoked * 500 - An error occurred while processing the request
* @param id URL encoded ID. (required)
* @return Revocation
* @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
Revocation has been processed locally. It has also been published to the network.
-
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 Revocation revokeVC(String id) throws ApiException {
ApiResponse localVarResp = revokeVCWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Revoke an issued credential
* Revoke a credential. error returns: * 400 - Credential can't be revoked. Most likely due to a missing private key. * 404 - Credential is not found * 409 - Credential has already been revoked * 500 - An error occurred while processing the request
* @param id URL encoded ID. (required)
* @return ApiResponse<Revocation>
* @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
Revocation has been processed locally. It has also been published to the network.
-
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 revokeVCWithHttpInfo(String id) throws ApiException {
okhttp3.Call localVarCall = revokeVCValidateBeforeCall(id, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Revoke an issued credential (asynchronously)
* Revoke a credential. error returns: * 400 - Credential can't be revoked. Most likely due to a missing private key. * 404 - Credential is not found * 409 - Credential has already been revoked * 500 - An error occurred while processing the request
* @param id URL encoded ID. (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
Revocation has been processed locally. It has also been published to the network.
-
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 revokeVCAsync(String id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = revokeVCValidateBeforeCall(id, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for searchIssuedVCs
* @param credentialType The type of the credential (required)
* @param issuer the DID of the issuer (required)
* @param subject the URI which indicates the subject (usually a DID) (optional)
* @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
A list of matching credentials
-
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 searchIssuedVCsCall(String credentialType, String issuer, String subject, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/internal/vcr/v2/issuer/vc/search";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (credentialType != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("credentialType", credentialType));
}
if (issuer != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("issuer", issuer));
}
if (subject != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("subject", subject));
}
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 searchIssuedVCsValidateBeforeCall(String credentialType, String issuer, String subject, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'credentialType' is set
if (credentialType == null) {
throw new ApiException("Missing the required parameter 'credentialType' when calling searchIssuedVCs(Async)");
}
// verify the required parameter 'issuer' is set
if (issuer == null) {
throw new ApiException("Missing the required parameter 'issuer' when calling searchIssuedVCs(Async)");
}
okhttp3.Call localVarCall = searchIssuedVCsCall(credentialType, issuer, subject, _callback);
return localVarCall;
}
/**
* Searches for verifiable credentials issued by this node which matches the search params
* The SearchVCResult contains a list of matching credentials regardless of the validity. The entry may contain a revocation which means the credential has been revoked. error returns: * 400 - Invalid search parameters * 500 - An error occurred while processing the request
* @param credentialType The type of the credential (required)
* @param issuer the DID of the issuer (required)
* @param subject the URI which indicates the subject (usually a DID) (optional)
* @return SearchVCResults
* @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
A list of matching credentials
-
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 SearchVCResults searchIssuedVCs(String credentialType, String issuer, String subject) throws ApiException {
ApiResponse localVarResp = searchIssuedVCsWithHttpInfo(credentialType, issuer, subject);
return localVarResp.getData();
}
/**
* Searches for verifiable credentials issued by this node which matches the search params
* The SearchVCResult contains a list of matching credentials regardless of the validity. The entry may contain a revocation which means the credential has been revoked. error returns: * 400 - Invalid search parameters * 500 - An error occurred while processing the request
* @param credentialType The type of the credential (required)
* @param issuer the DID of the issuer (required)
* @param subject the URI which indicates the subject (usually a DID) (optional)
* @return ApiResponse<SearchVCResults>
* @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
A list of matching credentials
-
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 searchIssuedVCsWithHttpInfo(String credentialType, String issuer, String subject) throws ApiException {
okhttp3.Call localVarCall = searchIssuedVCsValidateBeforeCall(credentialType, issuer, subject, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Searches for verifiable credentials issued by this node which matches the search params (asynchronously)
* The SearchVCResult contains a list of matching credentials regardless of the validity. The entry may contain a revocation which means the credential has been revoked. error returns: * 400 - Invalid search parameters * 500 - An error occurred while processing the request
* @param credentialType The type of the credential (required)
* @param issuer the DID of the issuer (required)
* @param subject the URI which indicates the subject (usually a DID) (optional)
* @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
A list of matching credentials
-
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 searchIssuedVCsAsync(String credentialType, String issuer, String subject, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = searchIssuedVCsValidateBeforeCall(credentialType, issuer, subject, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for searchVCs
* @param searchVCRequest Searching for VCs is done by passing a JSON-LD document as query. Each field in the request body must be present in the VC in order for it to be passed as result. Different JSON-LD contexts can be used allowing for different JSON formats. Consult the node documentation on the supported contexts. The type of the credential must contain \"VerifiableCredential\" and the additional Nuts credential type that matches the credentialSubject context. (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
A list of matching credentials
-
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 searchVCsCall(SearchVCRequest searchVCRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = searchVCRequest;
// create path and map variables
String localVarPath = "/internal/vcr/v2/search";
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 searchVCsValidateBeforeCall(SearchVCRequest searchVCRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'searchVCRequest' is set
if (searchVCRequest == null) {
throw new ApiException("Missing the required parameter 'searchVCRequest' when calling searchVCs(Async)");
}
okhttp3.Call localVarCall = searchVCsCall(searchVCRequest, _callback);
return localVarCall;
}
/**
* Searches for verifiable credentials that could be used for different use-cases.
* The result contains a list of matching credentials. Only verified credentials are returned. The search parameters define how the raw results are filtered. error returns: * 400 - Incorrect search query * 500 - An error occurred while processing the request
* @param searchVCRequest Searching for VCs is done by passing a JSON-LD document as query. Each field in the request body must be present in the VC in order for it to be passed as result. Different JSON-LD contexts can be used allowing for different JSON formats. Consult the node documentation on the supported contexts. The type of the credential must contain \"VerifiableCredential\" and the additional Nuts credential type that matches the credentialSubject context. (required)
* @return SearchVCResults
* @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
A list of matching credentials
-
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 SearchVCResults searchVCs(SearchVCRequest searchVCRequest) throws ApiException {
ApiResponse localVarResp = searchVCsWithHttpInfo(searchVCRequest);
return localVarResp.getData();
}
/**
* Searches for verifiable credentials that could be used for different use-cases.
* The result contains a list of matching credentials. Only verified credentials are returned. The search parameters define how the raw results are filtered. error returns: * 400 - Incorrect search query * 500 - An error occurred while processing the request
* @param searchVCRequest Searching for VCs is done by passing a JSON-LD document as query. Each field in the request body must be present in the VC in order for it to be passed as result. Different JSON-LD contexts can be used allowing for different JSON formats. Consult the node documentation on the supported contexts. The type of the credential must contain \"VerifiableCredential\" and the additional Nuts credential type that matches the credentialSubject context. (required)
* @return ApiResponse<SearchVCResults>
* @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
A list of matching credentials
-
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 searchVCsWithHttpInfo(SearchVCRequest searchVCRequest) throws ApiException {
okhttp3.Call localVarCall = searchVCsValidateBeforeCall(searchVCRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Searches for verifiable credentials that could be used for different use-cases. (asynchronously)
* The result contains a list of matching credentials. Only verified credentials are returned. The search parameters define how the raw results are filtered. error returns: * 400 - Incorrect search query * 500 - An error occurred while processing the request
* @param searchVCRequest Searching for VCs is done by passing a JSON-LD document as query. Each field in the request body must be present in the VC in order for it to be passed as result. Different JSON-LD contexts can be used allowing for different JSON formats. Consult the node documentation on the supported contexts. The type of the credential must contain \"VerifiableCredential\" and the additional Nuts credential type that matches the credentialSubject context. (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
A list of matching credentials
-
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 searchVCsAsync(SearchVCRequest searchVCRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = searchVCsValidateBeforeCall(searchVCRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for trustIssuer
* @param credentialIssuer a issuer/credentialType combination (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
204
The change was accepted.
-
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 trustIssuerCall(CredentialIssuer credentialIssuer, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = credentialIssuer;
// create path and map variables
String localVarPath = "/internal/vcr/v2/verifier/trust";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"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 trustIssuerValidateBeforeCall(CredentialIssuer credentialIssuer, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'credentialIssuer' is set
if (credentialIssuer == null) {
throw new ApiException("Missing the required parameter 'credentialIssuer' when calling trustIssuer(Async)");
}
okhttp3.Call localVarCall = trustIssuerCall(credentialIssuer, _callback);
return localVarCall;
}
/**
* Mark all the VCs of given type and issuer as 'trusted'.
* The added trust is persisted and may be removed with a delete operation. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param credentialIssuer a issuer/credentialType combination (required)
* @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
204
The change was accepted.
-
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 void trustIssuer(CredentialIssuer credentialIssuer) throws ApiException {
trustIssuerWithHttpInfo(credentialIssuer);
}
/**
* Mark all the VCs of given type and issuer as 'trusted'.
* The added trust is persisted and may be removed with a delete operation. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param credentialIssuer a issuer/credentialType combination (required)
* @return ApiResponse<Void>
* @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
204
The change was accepted.
-
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 trustIssuerWithHttpInfo(CredentialIssuer credentialIssuer) throws ApiException {
okhttp3.Call localVarCall = trustIssuerValidateBeforeCall(credentialIssuer, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Mark all the VCs of given type and issuer as 'trusted'. (asynchronously)
* The added trust is persisted and may be removed with a delete operation. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param credentialIssuer a issuer/credentialType combination (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
204
The change was accepted.
-
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 trustIssuerAsync(CredentialIssuer credentialIssuer, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = trustIssuerValidateBeforeCall(credentialIssuer, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for untrustIssuer
* @param credentialIssuer a issuer/credentialType combination (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
204
The change was accepted.
-
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 untrustIssuerCall(CredentialIssuer credentialIssuer, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = credentialIssuer;
// create path and map variables
String localVarPath = "/internal/vcr/v2/verifier/trust";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"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, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call untrustIssuerValidateBeforeCall(CredentialIssuer credentialIssuer, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'credentialIssuer' is set
if (credentialIssuer == null) {
throw new ApiException("Missing the required parameter 'credentialIssuer' when calling untrustIssuer(Async)");
}
okhttp3.Call localVarCall = untrustIssuerCall(credentialIssuer, _callback);
return localVarCall;
}
/**
* Remove trust in an issuer/credentialType combination
* The removed trust is persisted. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param credentialIssuer a issuer/credentialType combination (required)
* @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
204
The change was accepted.
-
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 void untrustIssuer(CredentialIssuer credentialIssuer) throws ApiException {
untrustIssuerWithHttpInfo(credentialIssuer);
}
/**
* Remove trust in an issuer/credentialType combination
* The removed trust is persisted. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param credentialIssuer a issuer/credentialType combination (required)
* @return ApiResponse<Void>
* @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
204
The change was accepted.
-
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 untrustIssuerWithHttpInfo(CredentialIssuer credentialIssuer) throws ApiException {
okhttp3.Call localVarCall = untrustIssuerValidateBeforeCall(credentialIssuer, null);
return localVarApiClient.execute(localVarCall);
}
/**
* Remove trust in an issuer/credentialType combination (asynchronously)
* The removed trust is persisted. error returns: * 400 - Invalid parameters * 500 - An error occurred while processing the request
* @param credentialIssuer a issuer/credentialType combination (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
204
The change was accepted.
-
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 untrustIssuerAsync(CredentialIssuer credentialIssuer, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = untrustIssuerValidateBeforeCall(credentialIssuer, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
/**
* Build call for verifyVC
* @param vcVerificationRequest (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
The verification result
-
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 verifyVCCall(VCVerificationRequest vcVerificationRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = vcVerificationRequest;
// create path and map variables
String localVarPath = "/internal/vcr/v2/verifier/vc";
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 verifyVCValidateBeforeCall(VCVerificationRequest vcVerificationRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'vcVerificationRequest' is set
if (vcVerificationRequest == null) {
throw new ApiException("Missing the required parameter 'vcVerificationRequest' when calling verifyVC(Async)");
}
okhttp3.Call localVarCall = verifyVCCall(vcVerificationRequest, _callback);
return localVarCall;
}
/**
* Verifies a Verifiable Credential
* Verifies a Verifiable Credential. It checks: * The signature * Expiration * Revocation status * If the issuer is trusted * If the issuer was not deactivated at time of issuing error returns: * 400 - One or more of the given parameters are invalid * 500 - An error occurred while processing the request
* @param vcVerificationRequest (required)
* @return VCVerificationResult
* @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
The verification result
-
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 VCVerificationResult verifyVC(VCVerificationRequest vcVerificationRequest) throws ApiException {
ApiResponse localVarResp = verifyVCWithHttpInfo(vcVerificationRequest);
return localVarResp.getData();
}
/**
* Verifies a Verifiable Credential
* Verifies a Verifiable Credential. It checks: * The signature * Expiration * Revocation status * If the issuer is trusted * If the issuer was not deactivated at time of issuing error returns: * 400 - One or more of the given parameters are invalid * 500 - An error occurred while processing the request
* @param vcVerificationRequest (required)
* @return ApiResponse<VCVerificationResult>
* @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
The verification result
-
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 verifyVCWithHttpInfo(VCVerificationRequest vcVerificationRequest) throws ApiException {
okhttp3.Call localVarCall = verifyVCValidateBeforeCall(vcVerificationRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Verifies a Verifiable Credential (asynchronously)
* Verifies a Verifiable Credential. It checks: * The signature * Expiration * Revocation status * If the issuer is trusted * If the issuer was not deactivated at time of issuing error returns: * 400 - One or more of the given parameters are invalid * 500 - An error occurred while processing the request
* @param vcVerificationRequest (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
The verification result
-
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 verifyVCAsync(VCVerificationRequest vcVerificationRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = verifyVCValidateBeforeCall(vcVerificationRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for verifyVP
* @param vpVerificationRequest (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
The verification result
-
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 verifyVPCall(VPVerificationRequest vpVerificationRequest, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = vpVerificationRequest;
// create path and map variables
String localVarPath = "/internal/vcr/v2/verifier/vp";
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 verifyVPValidateBeforeCall(VPVerificationRequest vpVerificationRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'vpVerificationRequest' is set
if (vpVerificationRequest == null) {
throw new ApiException("Missing the required parameter 'vpVerificationRequest' when calling verifyVP(Async)");
}
okhttp3.Call localVarCall = verifyVPCall(vpVerificationRequest, _callback);
return localVarCall;
}
/**
* Verifies a Verifiable Presentation
* Verifies a Verifiable Presentation. It checks: * Signature of the verifiable presentation and the verifiable credentials * Expiration * Revocation status * If the issuers of the verifiable credentials are trusted * If the issuers of the verifiable credentials were not deactivated at time of issuing If the verification can be performed successfully (regardless whether checks failed), HTTP status 200 is returned. Callers MUST observe the \"validity\" field of the verification result to check whether the VP is valid. error returns: * 400 - A parameter or the format of the verifiable presentation is invalid * 500 - An error occurred while processing the request
* @param vpVerificationRequest (required)
* @return VPVerificationResult
* @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
The verification result
-
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 VPVerificationResult verifyVP(VPVerificationRequest vpVerificationRequest) throws ApiException {
ApiResponse localVarResp = verifyVPWithHttpInfo(vpVerificationRequest);
return localVarResp.getData();
}
/**
* Verifies a Verifiable Presentation
* Verifies a Verifiable Presentation. It checks: * Signature of the verifiable presentation and the verifiable credentials * Expiration * Revocation status * If the issuers of the verifiable credentials are trusted * If the issuers of the verifiable credentials were not deactivated at time of issuing If the verification can be performed successfully (regardless whether checks failed), HTTP status 200 is returned. Callers MUST observe the \"validity\" field of the verification result to check whether the VP is valid. error returns: * 400 - A parameter or the format of the verifiable presentation is invalid * 500 - An error occurred while processing the request
* @param vpVerificationRequest (required)
* @return ApiResponse<VPVerificationResult>
* @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
The verification result
-
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 verifyVPWithHttpInfo(VPVerificationRequest vpVerificationRequest) throws ApiException {
okhttp3.Call localVarCall = verifyVPValidateBeforeCall(vpVerificationRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Verifies a Verifiable Presentation (asynchronously)
* Verifies a Verifiable Presentation. It checks: * Signature of the verifiable presentation and the verifiable credentials * Expiration * Revocation status * If the issuers of the verifiable credentials are trusted * If the issuers of the verifiable credentials were not deactivated at time of issuing If the verification can be performed successfully (regardless whether checks failed), HTTP status 200 is returned. Callers MUST observe the \"validity\" field of the verification result to check whether the VP is valid. error returns: * 400 - A parameter or the format of the verifiable presentation is invalid * 500 - An error occurred while processing the request
* @param vpVerificationRequest (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
The verification result
-
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 verifyVPAsync(VPVerificationRequest vpVerificationRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = verifyVPValidateBeforeCall(vpVerificationRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}