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

nl.reinkrul.nuts.auth.SignatureVerificationResponse 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 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;

/**
 * Contains the signature verification result.
 */
@ApiModel(description = "Contains the signature verification result.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:35.626800+02:00[Europe/Amsterdam]")
public class SignatureVerificationResponse {
  public static final String SERIALIZED_NAME_VALIDITY = "validity";
  @SerializedName(SERIALIZED_NAME_VALIDITY)
  private Boolean validity;

  public static final String SERIALIZED_NAME_VP_TYPE = "vpType";
  @SerializedName(SERIALIZED_NAME_VP_TYPE)
  private String vpType;

  public static final String SERIALIZED_NAME_ISSUER_ATTRIBUTES = "issuerAttributes";
  @SerializedName(SERIALIZED_NAME_ISSUER_ATTRIBUTES)
  private Object issuerAttributes;

  public static final String SERIALIZED_NAME_CREDENTIALS = "credentials";
  @SerializedName(SERIALIZED_NAME_CREDENTIALS)
  private Object credentials;


  public SignatureVerificationResponse validity(Boolean validity) {
    
    this.validity = validity;
    return this;
  }

   /**
   * Indicates the validity of the signature.
   * @return validity
  **/
  @ApiModelProperty(required = true, value = "Indicates the validity of the signature.")

  public Boolean getValidity() {
    return validity;
  }


  public void setValidity(Boolean validity) {
    this.validity = validity;
  }


  public SignatureVerificationResponse vpType(String vpType) {
    
    this.vpType = vpType;
    return this;
  }

   /**
   * Type of Verifiable credential.
   * @return vpType
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "NutsDelegation", value = "Type of Verifiable credential.")

  public String getVpType() {
    return vpType;
  }


  public void setVpType(String vpType) {
    this.vpType = vpType;
  }


  public SignatureVerificationResponse issuerAttributes(Object issuerAttributes) {
    
    this.issuerAttributes = issuerAttributes;
    return this;
  }

   /**
   * Key vale pairs containing the attributes of the issuer.
   * @return issuerAttributes
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "{\"uziNr\":9000382,\"firstName\":\"Henk\",\"lastName\":\"de Vries\"}", value = "Key vale pairs containing the attributes of the issuer.")

  public Object getIssuerAttributes() {
    return issuerAttributes;
  }


  public void setIssuerAttributes(Object issuerAttributes) {
    this.issuerAttributes = issuerAttributes;
  }


  public SignatureVerificationResponse credentials(Object credentials) {
    
    this.credentials = credentials;
    return this;
  }

   /**
   * Key value pairs containing claims and their values.
   * @return credentials
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "{\"organization\":\"Zorgcentrum de Oosterlanden\",\"validFrom\":\"2020-12-16T10:57:00\",\"validTo\":\"2020-12-16T12:57:00\"}", value = "Key value pairs containing claims and their values.")

  public Object getCredentials() {
    return credentials;
  }


  public void setCredentials(Object credentials) {
    this.credentials = credentials;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SignatureVerificationResponse signatureVerificationResponse = (SignatureVerificationResponse) o;
    return Objects.equals(this.validity, signatureVerificationResponse.validity) &&
        Objects.equals(this.vpType, signatureVerificationResponse.vpType) &&
        Objects.equals(this.issuerAttributes, signatureVerificationResponse.issuerAttributes) &&
        Objects.equals(this.credentials, signatureVerificationResponse.credentials);
  }

  @Override
  public int hashCode() {
    return Objects.hash(validity, vpType, issuerAttributes, credentials);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SignatureVerificationResponse {\n");
    sb.append("    validity: ").append(toIndentedString(validity)).append("\n");
    sb.append("    vpType: ").append(toIndentedString(vpType)).append("\n");
    sb.append("    issuerAttributes: ").append(toIndentedString(issuerAttributes)).append("\n");
    sb.append("    credentials: ").append(toIndentedString(credentials)).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