nl.reinkrul.nuts.auth.SignSessionRequest 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 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;
/**
* SignSessionRequest
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:35.626800+02:00[Europe/Amsterdam]")
public class SignSessionRequest {
/**
* Gets or Sets means
*/
@JsonAdapter(MeansEnum.Adapter.class)
public enum MeansEnum {
IRMA("irma"),
DUMMY("dummy");
private String value;
MeansEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static MeansEnum fromValue(String value) {
for (MeansEnum b : MeansEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final MeansEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public MeansEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return MeansEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_MEANS = "means";
@SerializedName(SERIALIZED_NAME_MEANS)
private MeansEnum means;
public static final String SERIALIZED_NAME_PARAMS = "params";
@SerializedName(SERIALIZED_NAME_PARAMS)
private Object params;
public static final String SERIALIZED_NAME_PAYLOAD = "payload";
@SerializedName(SERIALIZED_NAME_PAYLOAD)
private String payload;
public SignSessionRequest means(MeansEnum means) {
this.means = means;
return this;
}
/**
* Get means
* @return means
**/
@ApiModelProperty(example = "irma", required = true, value = "")
public MeansEnum getMeans() {
return means;
}
public void setMeans(MeansEnum means) {
this.means = means;
}
public SignSessionRequest params(Object params) {
this.params = params;
return this;
}
/**
* Params are passed to the means. Should be documented in the means documentation.
* @return params
**/
@ApiModelProperty(required = true, value = "Params are passed to the means. Should be documented in the means documentation.")
public Object getParams() {
return params;
}
public void setParams(Object params) {
this.params = params;
}
public SignSessionRequest payload(String payload) {
this.payload = payload;
return this;
}
/**
* Base64 encoded payload what needs to be signed.
* @return payload
**/
@ApiModelProperty(required = true, value = "Base64 encoded payload what needs to be signed.")
public String getPayload() {
return payload;
}
public void setPayload(String payload) {
this.payload = payload;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SignSessionRequest signSessionRequest = (SignSessionRequest) o;
return Objects.equals(this.means, signSessionRequest.means) &&
Objects.equals(this.params, signSessionRequest.params) &&
Objects.equals(this.payload, signSessionRequest.payload);
}
@Override
public int hashCode() {
return Objects.hash(means, params, payload);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SignSessionRequest {\n");
sb.append(" means: ").append(toIndentedString(means)).append("\n");
sb.append(" params: ").append(toIndentedString(params)).append("\n");
sb.append(" payload: ").append(toIndentedString(payload)).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