AuthenticationHttpsBaseCertificato.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 AuthenticationHttpsBaseCertificato  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private byte[] archivio = null;
  29.  
  30.   @Schema(example = "alias", description = "")
  31.   private String alias = null;
  32.  
  33.   @Schema(example = "changeit", description = "")
  34.   private String password = null;
  35.  
  36.   @Schema(required = true, description = "")
  37.   private TipoKeystore tipoCertificato = null;
  38.  
  39.   @Schema(example = "false", description = "")
  40.   private Boolean strictVerification = false;
  41.  /**
  42.    * Get archivio
  43.    * @return archivio
  44.   **/
  45.   @JsonProperty("archivio")
  46.   @NotNull
  47.   @Valid
  48.   public byte[] getArchivio() {
  49.     return this.archivio;
  50.   }

  51.   public void setArchivio(byte[] archivio) {
  52.     this.archivio = archivio;
  53.   }

  54.   public AuthenticationHttpsBaseCertificato archivio(byte[] archivio) {
  55.     this.archivio = archivio;
  56.     return this;
  57.   }

  58.  /**
  59.    * Get alias
  60.    * @return alias
  61.   **/
  62.   @JsonProperty("alias")
  63.   @Valid
  64.  @Size(max=255)  public String getAlias() {
  65.     return this.alias;
  66.   }

  67.   public void setAlias(String alias) {
  68.     this.alias = alias;
  69.   }

  70.   public AuthenticationHttpsBaseCertificato alias(String alias) {
  71.     this.alias = alias;
  72.     return this;
  73.   }

  74.  /**
  75.    * Get password
  76.    * @return password
  77.   **/
  78.   @JsonProperty("password")
  79.   @Valid
  80.  @Size(max=255)  public String getPassword() {
  81.     return this.password;
  82.   }

  83.   public void setPassword(String password) {
  84.     this.password = password;
  85.   }

  86.   public AuthenticationHttpsBaseCertificato password(String password) {
  87.     this.password = password;
  88.     return this;
  89.   }

  90.  /**
  91.    * Get tipoCertificato
  92.    * @return tipoCertificato
  93.   **/
  94.   @JsonProperty("tipo_certificato")
  95.   @NotNull
  96.   @Valid
  97.   public TipoKeystore getTipoCertificato() {
  98.     return this.tipoCertificato;
  99.   }

  100.   public void setTipoCertificato(TipoKeystore tipoCertificato) {
  101.     this.tipoCertificato = tipoCertificato;
  102.   }

  103.   public AuthenticationHttpsBaseCertificato tipoCertificato(TipoKeystore tipoCertificato) {
  104.     this.tipoCertificato = tipoCertificato;
  105.     return this;
  106.   }

  107.  /**
  108.    * Get strictVerification
  109.    * @return strictVerification
  110.   **/
  111.   @JsonProperty("strict_verification")
  112.   @Valid
  113.   public Boolean isStrictVerification() {
  114.     return this.strictVerification;
  115.   }

  116.   public void setStrictVerification(Boolean strictVerification) {
  117.     this.strictVerification = strictVerification;
  118.   }

  119.   public AuthenticationHttpsBaseCertificato strictVerification(Boolean strictVerification) {
  120.     this.strictVerification = strictVerification;
  121.     return this;
  122.   }


  123.   @Override
  124.   public String toString() {
  125.     StringBuilder sb = new StringBuilder();
  126.     sb.append("class AuthenticationHttpsBaseCertificato {\n");
  127.    
  128.     sb.append("    archivio: ").append(AuthenticationHttpsBaseCertificato.toIndentedString(this.archivio)).append("\n");
  129.     sb.append("    alias: ").append(AuthenticationHttpsBaseCertificato.toIndentedString(this.alias)).append("\n");
  130.     sb.append("    password: ").append(AuthenticationHttpsBaseCertificato.toIndentedString(this.password)).append("\n");
  131.     sb.append("    tipoCertificato: ").append(AuthenticationHttpsBaseCertificato.toIndentedString(this.tipoCertificato)).append("\n");
  132.     sb.append("    strictVerification: ").append(AuthenticationHttpsBaseCertificato.toIndentedString(this.strictVerification)).append("\n");
  133.     sb.append("}");
  134.     return sb.toString();
  135.   }

  136.   /**
  137.    * Convert the given object to string with each line indented by 4 spaces
  138.    * (except the first line).
  139.    */
  140.   private static String toIndentedString(java.lang.Object o) {
  141.     if (o == null) {
  142.       return "null";
  143.     }
  144.     return o.toString().replace("\n", "\n    ");
  145.   }
  146. }