ErogazioneModISoapRispostaSicurezzaMessaggio.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 java.util.List;
  22. import javax.validation.constraints.*;

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

  26. public class ErogazioneModISoapRispostaSicurezzaMessaggio  {
  27.  
  28.   @Schema(description = "")
  29.   private ModISicurezzaMessaggioSoapAlgoritmoFirma algoritmo = null;
  30.  
  31.   @Schema(description = "")
  32.   private List<String> headerSoapFirmare = null;
  33.  
  34.   @Schema(description = "")
  35.   private ModISicurezzaMessaggioSoapFormaCanonicaXml formaCanonicaXml = null;
  36.  
  37.   @Schema(description = "")
  38.   private ModISicurezzaMessaggioSoapRiferimentoX509 riferimentoX509 = null;
  39.  
  40.   @Schema(description = "")
  41.   private Boolean certificateChain = null;
  42.  
  43.   @Schema(description = "")
  44.   private Boolean includiSignatureToken = null;
  45.  
  46.   @Schema(required = true, description = "")
  47.   @com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.EXISTING_PROPERTY, property = "modalita", visible = true )
  48.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  49.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreDefault.class, name = "default"),
  50.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreRidefinito.class, name = "ridefinito")  })
  51.   private OneOfErogazioneModISoapRispostaSicurezzaMessaggioKeystore keystore = null;
  52.  
  53.   @Schema(description = "")
  54.   private Integer timeToLive = 300;
  55.  /**
  56.    * Get algoritmo
  57.    * @return algoritmo
  58.   **/
  59.   @JsonProperty("algoritmo")
  60.   @Valid
  61.   public ModISicurezzaMessaggioSoapAlgoritmoFirma getAlgoritmo() {
  62.     return this.algoritmo;
  63.   }

  64.   public void setAlgoritmo(ModISicurezzaMessaggioSoapAlgoritmoFirma algoritmo) {
  65.     this.algoritmo = algoritmo;
  66.   }

  67.   public ErogazioneModISoapRispostaSicurezzaMessaggio algoritmo(ModISicurezzaMessaggioSoapAlgoritmoFirma algoritmo) {
  68.     this.algoritmo = algoritmo;
  69.     return this;
  70.   }

  71.  /**
  72.    * Get headerSoapFirmare
  73.    * @return headerSoapFirmare
  74.   **/
  75.   @JsonProperty("header_soap_firmare")
  76.   @Valid
  77.   public List<String> getHeaderSoapFirmare() {
  78.     return this.headerSoapFirmare;
  79.   }

  80.   public void setHeaderSoapFirmare(List<String> headerSoapFirmare) {
  81.     this.headerSoapFirmare = headerSoapFirmare;
  82.   }

  83.   public ErogazioneModISoapRispostaSicurezzaMessaggio headerSoapFirmare(List<String> headerSoapFirmare) {
  84.     this.headerSoapFirmare = headerSoapFirmare;
  85.     return this;
  86.   }

  87.   public ErogazioneModISoapRispostaSicurezzaMessaggio addHeaderSoapFirmareItem(String headerSoapFirmareItem) {
  88.     this.headerSoapFirmare.add(headerSoapFirmareItem);
  89.     return this;
  90.   }

  91.  /**
  92.    * Get formaCanonicaXml
  93.    * @return formaCanonicaXml
  94.   **/
  95.   @JsonProperty("forma_canonica_xml")
  96.   @Valid
  97.   public ModISicurezzaMessaggioSoapFormaCanonicaXml getFormaCanonicaXml() {
  98.     return this.formaCanonicaXml;
  99.   }

  100.   public void setFormaCanonicaXml(ModISicurezzaMessaggioSoapFormaCanonicaXml formaCanonicaXml) {
  101.     this.formaCanonicaXml = formaCanonicaXml;
  102.   }

  103.   public ErogazioneModISoapRispostaSicurezzaMessaggio formaCanonicaXml(ModISicurezzaMessaggioSoapFormaCanonicaXml formaCanonicaXml) {
  104.     this.formaCanonicaXml = formaCanonicaXml;
  105.     return this;
  106.   }

  107.  /**
  108.    * Get riferimentoX509
  109.    * @return riferimentoX509
  110.   **/
  111.   @JsonProperty("riferimento_x509")
  112.   @Valid
  113.   public ModISicurezzaMessaggioSoapRiferimentoX509 getRiferimentoX509() {
  114.     return this.riferimentoX509;
  115.   }

  116.   public void setRiferimentoX509(ModISicurezzaMessaggioSoapRiferimentoX509 riferimentoX509) {
  117.     this.riferimentoX509 = riferimentoX509;
  118.   }

  119.   public ErogazioneModISoapRispostaSicurezzaMessaggio riferimentoX509(ModISicurezzaMessaggioSoapRiferimentoX509 riferimentoX509) {
  120.     this.riferimentoX509 = riferimentoX509;
  121.     return this;
  122.   }

  123.  /**
  124.    * Get certificateChain
  125.    * @return certificateChain
  126.   **/
  127.   @JsonProperty("certificate_chain")
  128.   @Valid
  129.   public Boolean isCertificateChain() {
  130.     return this.certificateChain;
  131.   }

  132.   public void setCertificateChain(Boolean certificateChain) {
  133.     this.certificateChain = certificateChain;
  134.   }

  135.   public ErogazioneModISoapRispostaSicurezzaMessaggio certificateChain(Boolean certificateChain) {
  136.     this.certificateChain = certificateChain;
  137.     return this;
  138.   }

  139.  /**
  140.    * Get includiSignatureToken
  141.    * @return includiSignatureToken
  142.   **/
  143.   @JsonProperty("includi_signature_token")
  144.   @Valid
  145.   public Boolean isIncludiSignatureToken() {
  146.     return this.includiSignatureToken;
  147.   }

  148.   public void setIncludiSignatureToken(Boolean includiSignatureToken) {
  149.     this.includiSignatureToken = includiSignatureToken;
  150.   }

  151.   public ErogazioneModISoapRispostaSicurezzaMessaggio includiSignatureToken(Boolean includiSignatureToken) {
  152.     this.includiSignatureToken = includiSignatureToken;
  153.     return this;
  154.   }

  155.  /**
  156.    * Get keystore
  157.    * @return keystore
  158.   **/
  159.   @JsonProperty("keystore")
  160.   @NotNull
  161.   @Valid
  162.   public OneOfErogazioneModISoapRispostaSicurezzaMessaggioKeystore getKeystore() {
  163.     return this.keystore;
  164.   }

  165.   public void setKeystore(OneOfErogazioneModISoapRispostaSicurezzaMessaggioKeystore keystore) {
  166.     this.keystore = keystore;
  167.   }

  168.   public ErogazioneModISoapRispostaSicurezzaMessaggio keystore(OneOfErogazioneModISoapRispostaSicurezzaMessaggioKeystore keystore) {
  169.     this.keystore = keystore;
  170.     return this;
  171.   }

  172.  /**
  173.    * Get timeToLive
  174.    * @return timeToLive
  175.   **/
  176.   @JsonProperty("time_to_live")
  177.   @Valid
  178.   public Integer getTimeToLive() {
  179.     return this.timeToLive;
  180.   }

  181.   public void setTimeToLive(Integer timeToLive) {
  182.     this.timeToLive = timeToLive;
  183.   }

  184.   public ErogazioneModISoapRispostaSicurezzaMessaggio timeToLive(Integer timeToLive) {
  185.     this.timeToLive = timeToLive;
  186.     return this;
  187.   }


  188.   @Override
  189.   public String toString() {
  190.     StringBuilder sb = new StringBuilder();
  191.     sb.append("class ErogazioneModISoapRispostaSicurezzaMessaggio {\n");
  192.    
  193.     sb.append("    algoritmo: ").append(ErogazioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.algoritmo)).append("\n");
  194.     sb.append("    headerSoapFirmare: ").append(ErogazioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.headerSoapFirmare)).append("\n");
  195.     sb.append("    formaCanonicaXml: ").append(ErogazioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.formaCanonicaXml)).append("\n");
  196.     sb.append("    riferimentoX509: ").append(ErogazioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.riferimentoX509)).append("\n");
  197.     sb.append("    certificateChain: ").append(ErogazioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.certificateChain)).append("\n");
  198.     sb.append("    includiSignatureToken: ").append(ErogazioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.includiSignatureToken)).append("\n");
  199.     sb.append("    keystore: ").append(ErogazioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.keystore)).append("\n");
  200.     sb.append("    timeToLive: ").append(ErogazioneModISoapRispostaSicurezzaMessaggio.toIndentedString(this.timeToLive)).append("\n");
  201.     sb.append("}");
  202.     return sb.toString();
  203.   }

  204.   /**
  205.    * Convert the given object to string with each line indented by 4 spaces
  206.    * (except the first line).
  207.    */
  208.   private static String toIndentedString(java.lang.Object o) {
  209.     if (o == null) {
  210.       return "null";
  211.     }
  212.     return o.toString().replace("\n", "\n    ");
  213.   }
  214. }