AuthenticationHttpsConfigurazioneManuale.java

  1. /*
  2.  * GovWay - A customizable API Gateway
  3.  * https://govway.org
  4.  *
  5.  * Copyright (c) 2005-2025 Link.it srl (https://link.it).
  6.  *
  7.  * This program is free software: you can redistribute it and/or modify
  8.  * it under the terms of the GNU General Public License version 3, as published by
  9.  * the Free Software Foundation.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18.  *
  19.  */
  20. package org.openspcoop2.core.config.rs.server.model;

  21. import javax.validation.constraints.*;

  22. import io.swagger.v3.oas.annotations.media.Schema;
  23. import com.fasterxml.jackson.annotation.JsonProperty;
  24. import javax.validation.Valid;

  25. public class AuthenticationHttpsConfigurazioneManuale  implements OneOfAuthenticationHttpsCertificato {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private TipoAutenticazioneHttps tipo = null;
  29.  
  30.   @Schema(example = "cn=esterno", required = true, description = "")
  31.   private String subject = null;
  32.  
  33.   @Schema(example = "cn=esterno", description = "")
  34.   private String issuer = null;
  35.  /**
  36.    * Get tipo
  37.    * @return tipo
  38.   **/
  39.   @Override
  40. @JsonProperty("tipo")
  41.   @NotNull
  42.   @Valid
  43.   public TipoAutenticazioneHttps getTipo() {
  44.     return this.tipo;
  45.   }

  46.   public void setTipo(TipoAutenticazioneHttps tipo) {
  47.     this.tipo = tipo;
  48.   }

  49.   public AuthenticationHttpsConfigurazioneManuale tipo(TipoAutenticazioneHttps tipo) {
  50.     this.tipo = tipo;
  51.     return this;
  52.   }

  53.  /**
  54.    * Get subject
  55.    * @return subject
  56.   **/
  57.   @JsonProperty("subject")
  58.   @NotNull
  59.   @Valid
  60.  @Size(max=2800)  public String getSubject() {
  61.     return this.subject;
  62.   }

  63.   public void setSubject(String subject) {
  64.     this.subject = subject;
  65.   }

  66.   public AuthenticationHttpsConfigurazioneManuale subject(String subject) {
  67.     this.subject = subject;
  68.     return this;
  69.   }

  70.  /**
  71.    * Get issuer
  72.    * @return issuer
  73.   **/
  74.   @JsonProperty("issuer")
  75.   @Valid
  76.  @Size(max=2800)  public String getIssuer() {
  77.     return this.issuer;
  78.   }

  79.   public void setIssuer(String issuer) {
  80.     this.issuer = issuer;
  81.   }

  82.   public AuthenticationHttpsConfigurazioneManuale issuer(String issuer) {
  83.     this.issuer = issuer;
  84.     return this;
  85.   }


  86.   @Override
  87.   public String toString() {
  88.     StringBuilder sb = new StringBuilder();
  89.     sb.append("class AuthenticationHttpsConfigurazioneManuale {\n");
  90.    
  91.     sb.append("    tipo: ").append(AuthenticationHttpsConfigurazioneManuale.toIndentedString(this.tipo)).append("\n");
  92.     sb.append("    subject: ").append(AuthenticationHttpsConfigurazioneManuale.toIndentedString(this.subject)).append("\n");
  93.     sb.append("    issuer: ").append(AuthenticationHttpsConfigurazioneManuale.toIndentedString(this.issuer)).append("\n");
  94.     sb.append("}");
  95.     return sb.toString();
  96.   }

  97.   /**
  98.    * Convert the given object to string with each line indented by 4 spaces
  99.    * (except the first line).
  100.    */
  101.   private static String toIndentedString(java.lang.Object o) {
  102.     if (o == null) {
  103.       return "null";
  104.     }
  105.     return o.toString().replace("\n", "\n    ");
  106.   }
  107. }