Artifact Content
Not logged in

Artifact c348dd945e91620e2f720944217af6aa795e7705:


package org.interledger.cryptoconditions.helpers;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * POJO class that defines a test vector containing pre-calculated and verified test data used to
 * test the various crypto-condition implementations.
 */
public class TestVector {

  private String name;
  private TestVectorJson json;
  private long cost;
  private List<String> subtypes;
  private String fingerprintContents;
  private String fulfillment;
  private String conditionBinary;
  private String conditionUri;
  private String message;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @JsonProperty
  public TestVectorJson getJson() {
    return json;
  }

  public void setJson(TestVectorJson json) {
    this.json = json;
  }

  @JsonProperty
  public long getCost() {
    return cost;
  }

  public void setCost(long cost) {
    this.cost = cost;
  }

  @JsonProperty
  public List<String> getSubtypes() {
    return subtypes;
  }

  public void setSubtypes(List<String> subtypes) {
    this.subtypes = subtypes;
  }


  @JsonProperty
  public String getFingerprintContents() {
    return fingerprintContents;
  }

  public void setFingerprintContents(String fingerprintContents) {
    this.fingerprintContents = fingerprintContents;
  }

  @JsonProperty
  public String getFulfillment() {
    return fulfillment;
  }

  public void setFulfillment(String fulfillment) {
    this.fulfillment = fulfillment;
  }

  @JsonProperty
  public String getConditionBinary() {
    return conditionBinary;
  }

  public void setConditionBinary(String conditionBinary) {
    this.conditionBinary = conditionBinary;
  }

  @JsonProperty
  public String getConditionUri() {
    return conditionUri;
  }

  public void setConditionUri(String conditionUri) {
    this.conditionUri = conditionUri;
  }

  @JsonProperty
  public String getMessage() {
    return message;
  }

  public void setMessage(String message) {
    this.message = message;
  }

  @Override
  public String toString() {
    return getName();
  }
}