nl.reinkrul.nuts.vcr.v2.VPVerificationRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java client library for using the Nuts Node's REST API.
/*
* 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 java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import nl.reinkrul.nuts.vcr.v2.VerifiablePresentation;
/**
* VPVerificationRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:34.811142+02:00[Europe/Amsterdam]")
public class VPVerificationRequest {
public static final String SERIALIZED_NAME_VERIFIABLE_PRESENTATION = "verifiablePresentation";
@SerializedName(SERIALIZED_NAME_VERIFIABLE_PRESENTATION)
private VerifiablePresentation verifiablePresentation;
public static final String SERIALIZED_NAME_VALID_AT = "validAt";
@SerializedName(SERIALIZED_NAME_VALID_AT)
private String validAt;
public static final String SERIALIZED_NAME_VERIFY_CREDENTIALS = "verifyCredentials";
@SerializedName(SERIALIZED_NAME_VERIFY_CREDENTIALS)
private Boolean verifyCredentials = true;
public VPVerificationRequest verifiablePresentation(VerifiablePresentation verifiablePresentation) {
this.verifiablePresentation = verifiablePresentation;
return this;
}
/**
* Get verifiablePresentation
* @return verifiablePresentation
**/
@ApiModelProperty(required = true, value = "")
public VerifiablePresentation getVerifiablePresentation() {
return verifiablePresentation;
}
public void setVerifiablePresentation(VerifiablePresentation verifiablePresentation) {
this.verifiablePresentation = verifiablePresentation;
}
public VPVerificationRequest validAt(String validAt) {
this.validAt = validAt;
return this;
}
/**
* Date and time at which the VP should be valid. If not supplied, the current date/time is used.
* @return validAt
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2021-12-20T09:00:00Z", value = "Date and time at which the VP should be valid. If not supplied, the current date/time is used.")
public String getValidAt() {
return validAt;
}
public void setValidAt(String validAt) {
this.validAt = validAt;
}
public VPVerificationRequest verifyCredentials(Boolean verifyCredentials) {
this.verifyCredentials = verifyCredentials;
return this;
}
/**
* Indicates whether the Verifiable Credentials within the VP must be verified, default true.
* @return verifyCredentials
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Indicates whether the Verifiable Credentials within the VP must be verified, default true.")
public Boolean getVerifyCredentials() {
return verifyCredentials;
}
public void setVerifyCredentials(Boolean verifyCredentials) {
this.verifyCredentials = verifyCredentials;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VPVerificationRequest vpVerificationRequest = (VPVerificationRequest) o;
return Objects.equals(this.verifiablePresentation, vpVerificationRequest.verifiablePresentation) &&
Objects.equals(this.validAt, vpVerificationRequest.validAt) &&
Objects.equals(this.verifyCredentials, vpVerificationRequest.verifyCredentials);
}
@Override
public int hashCode() {
return Objects.hash(verifiablePresentation, validAt, verifyCredentials);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VPVerificationRequest {\n");
sb.append(" verifiablePresentation: ").append(toIndentedString(verifiablePresentation)).append("\n");
sb.append(" validAt: ").append(toIndentedString(validAt)).append("\n");
sb.append(" verifyCredentials: ").append(toIndentedString(verifyCredentials)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy