nl.reinkrul.nuts.crypto.SignJwtRequest 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.
/*
* Crypto
* API specification for crypto services available within nuts node
*
* 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.crypto;
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;
/**
* SignJwtRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:35.530218+02:00[Europe/Amsterdam]")
public class SignJwtRequest {
public static final String SERIALIZED_NAME_KID = "kid";
@SerializedName(SERIALIZED_NAME_KID)
private String kid;
public static final String SERIALIZED_NAME_CLAIMS = "claims";
@SerializedName(SERIALIZED_NAME_CLAIMS)
private Object claims;
public SignJwtRequest kid(String kid) {
this.kid = kid;
return this;
}
/**
* Get kid
* @return kid
**/
@ApiModelProperty(required = true, value = "")
public String getKid() {
return kid;
}
public void setKid(String kid) {
this.kid = kid;
}
public SignJwtRequest claims(Object claims) {
this.claims = claims;
return this;
}
/**
* Get claims
* @return claims
**/
@ApiModelProperty(required = true, value = "")
public Object getClaims() {
return claims;
}
public void setClaims(Object claims) {
this.claims = claims;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SignJwtRequest signJwtRequest = (SignJwtRequest) o;
return Objects.equals(this.kid, signJwtRequest.kid) &&
Objects.equals(this.claims, signJwtRequest.claims);
}
@Override
public int hashCode() {
return Objects.hash(kid, claims);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SignJwtRequest {\n");
sb.append(" kid: ").append(toIndentedString(kid)).append("\n");
sb.append(" claims: ").append(toIndentedString(claims)).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