nl.reinkrul.nuts.auth.JwtGrantResponse 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;
/**
* Response with a JWT Grant. It contains a JWT, signed with the private key of the requestor software vendor.
*/
@ApiModel(description = "Response with a JWT Grant. It contains a JWT, signed with the private key of the requestor software vendor.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T14:56:35.626800+02:00[Europe/Amsterdam]")
public class JwtGrantResponse {
public static final String SERIALIZED_NAME_BEARER_TOKEN = "bearer_token";
@SerializedName(SERIALIZED_NAME_BEARER_TOKEN)
private String bearerToken;
public static final String SERIALIZED_NAME_AUTHORIZATION_SERVER_ENDPOINT = "authorization_server_endpoint";
@SerializedName(SERIALIZED_NAME_AUTHORIZATION_SERVER_ENDPOINT)
private String authorizationServerEndpoint;
public JwtGrantResponse bearerToken(String bearerToken) {
this.bearerToken = bearerToken;
return this;
}
/**
* Get bearerToken
* @return bearerToken
**/
@ApiModelProperty(required = true, value = "")
public String getBearerToken() {
return bearerToken;
}
public void setBearerToken(String bearerToken) {
this.bearerToken = bearerToken;
}
public JwtGrantResponse authorizationServerEndpoint(String authorizationServerEndpoint) {
this.authorizationServerEndpoint = authorizationServerEndpoint;
return this;
}
/**
* The URL that corresponds to the oauth endpoint of the selected service.
* @return authorizationServerEndpoint
**/
@ApiModelProperty(required = true, value = "The URL that corresponds to the oauth endpoint of the selected service.")
public String getAuthorizationServerEndpoint() {
return authorizationServerEndpoint;
}
public void setAuthorizationServerEndpoint(String authorizationServerEndpoint) {
this.authorizationServerEndpoint = authorizationServerEndpoint;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
JwtGrantResponse jwtGrantResponse = (JwtGrantResponse) o;
return Objects.equals(this.bearerToken, jwtGrantResponse.bearerToken) &&
Objects.equals(this.authorizationServerEndpoint, jwtGrantResponse.authorizationServerEndpoint);
}
@Override
public int hashCode() {
return Objects.hash(bearerToken, authorizationServerEndpoint);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class JwtGrantResponse {\n");
sb.append(" bearerToken: ").append(toIndentedString(bearerToken)).append("\n");
sb.append(" authorizationServerEndpoint: ").append(toIndentedString(authorizationServerEndpoint)).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