ErogazioneModIRestRispostaSicurezzaMessaggio.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 ErogazioneModIRestRispostaSicurezzaMessaggio  {
  27.  
  28.   @Schema(description = "")
  29.   private ModISicurezzaMessaggioRestAlgoritmoFirma algoritmo = null;
  30.  
  31.   @Schema(description = "")
  32.   private List<String> headerHttpFirmare = null;
  33.  
  34.   @Schema(description = "")
  35.   private ModISicurezzaMessaggioRestRiferimentoX509Risposta riferimentoX509 = null;
  36.  
  37.   @Schema(description = "")
  38.   private List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509Risposta = null;
  39.  
  40.   @Schema(description = "")
  41.   private Boolean certificateChain = null;
  42.  
  43.   @Schema(description = "")
  44.   private String url = 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 OneOfErogazioneModIRestRispostaSicurezzaMessaggioKeystore keystore = null;
  52.  
  53.   @Schema(description = "")
  54.   private Integer timeToLive = 300;
  55.  
  56.   @Schema(description = "Indicare i claims richiesti (nome=valore); è possibile elencare differenti valori ammissibili separandoli con la virgola")
  57.  /**
  58.    * Indicare i claims richiesti (nome=valore); è possibile elencare differenti valori ammissibili separandoli con la virgola  
  59.   **/
  60.   private List<String> claims = null;
  61.  
  62.   @Schema(description = "")
  63.   private ErogazioneModIRestRispostaSicurezzaMessaggioContemporaneita contemporaneita = null;
  64.  /**
  65.    * Get algoritmo
  66.    * @return algoritmo
  67.   **/
  68.   @JsonProperty("algoritmo")
  69.   @Valid
  70.   public ModISicurezzaMessaggioRestAlgoritmoFirma getAlgoritmo() {
  71.     return this.algoritmo;
  72.   }

  73.   public void setAlgoritmo(ModISicurezzaMessaggioRestAlgoritmoFirma algoritmo) {
  74.     this.algoritmo = algoritmo;
  75.   }

  76.   public ErogazioneModIRestRispostaSicurezzaMessaggio algoritmo(ModISicurezzaMessaggioRestAlgoritmoFirma algoritmo) {
  77.     this.algoritmo = algoritmo;
  78.     return this;
  79.   }

  80.  /**
  81.    * Get headerHttpFirmare
  82.    * @return headerHttpFirmare
  83.   **/
  84.   @JsonProperty("header_http_firmare")
  85.   @Valid
  86.   public List<String> getHeaderHttpFirmare() {
  87.     return this.headerHttpFirmare;
  88.   }

  89.   public void setHeaderHttpFirmare(List<String> headerHttpFirmare) {
  90.     this.headerHttpFirmare = headerHttpFirmare;
  91.   }

  92.   public ErogazioneModIRestRispostaSicurezzaMessaggio headerHttpFirmare(List<String> headerHttpFirmare) {
  93.     this.headerHttpFirmare = headerHttpFirmare;
  94.     return this;
  95.   }

  96.   public ErogazioneModIRestRispostaSicurezzaMessaggio addHeaderHttpFirmareItem(String headerHttpFirmareItem) {
  97.     this.headerHttpFirmare.add(headerHttpFirmareItem);
  98.     return this;
  99.   }

  100.  /**
  101.    * Get riferimentoX509
  102.    * @return riferimentoX509
  103.   **/
  104.   @JsonProperty("riferimento_x509")
  105.   @Valid
  106.   public ModISicurezzaMessaggioRestRiferimentoX509Risposta getRiferimentoX509() {
  107.     return this.riferimentoX509;
  108.   }

  109.   public void setRiferimentoX509(ModISicurezzaMessaggioRestRiferimentoX509Risposta riferimentoX509) {
  110.     this.riferimentoX509 = riferimentoX509;
  111.   }

  112.   public ErogazioneModIRestRispostaSicurezzaMessaggio riferimentoX509(ModISicurezzaMessaggioRestRiferimentoX509Risposta riferimentoX509) {
  113.     this.riferimentoX509 = riferimentoX509;
  114.     return this;
  115.   }

  116.  /**
  117.    * Get riferimentoX509Risposta
  118.    * @return riferimentoX509Risposta
  119.   **/
  120.   @JsonProperty("riferimento_x509_risposta")
  121.   @Valid
  122.  @Size(min=1,max=3)  public List<ModISicurezzaMessaggioRestRiferimentoX509> getRiferimentoX509Risposta() {
  123.     return this.riferimentoX509Risposta;
  124.   }

  125.   public void setRiferimentoX509Risposta(List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509Risposta) {
  126.     this.riferimentoX509Risposta = riferimentoX509Risposta;
  127.   }

  128.   public ErogazioneModIRestRispostaSicurezzaMessaggio riferimentoX509Risposta(List<ModISicurezzaMessaggioRestRiferimentoX509> riferimentoX509Risposta) {
  129.     this.riferimentoX509Risposta = riferimentoX509Risposta;
  130.     return this;
  131.   }

  132.   public ErogazioneModIRestRispostaSicurezzaMessaggio addRiferimentoX509RispostaItem(ModISicurezzaMessaggioRestRiferimentoX509 riferimentoX509RispostaItem) {
  133.     this.riferimentoX509Risposta.add(riferimentoX509RispostaItem);
  134.     return this;
  135.   }

  136.  /**
  137.    * Get certificateChain
  138.    * @return certificateChain
  139.   **/
  140.   @JsonProperty("certificate_chain")
  141.   @Valid
  142.   public Boolean isCertificateChain() {
  143.     return this.certificateChain;
  144.   }

  145.   public void setCertificateChain(Boolean certificateChain) {
  146.     this.certificateChain = certificateChain;
  147.   }

  148.   public ErogazioneModIRestRispostaSicurezzaMessaggio certificateChain(Boolean certificateChain) {
  149.     this.certificateChain = certificateChain;
  150.     return this;
  151.   }

  152.  /**
  153.    * Get url
  154.    * @return url
  155.   **/
  156.   @JsonProperty("url")
  157.   @Valid
  158.  @Size(max=4000)  public String getUrl() {
  159.     return this.url;
  160.   }

  161.   public void setUrl(String url) {
  162.     this.url = url;
  163.   }

  164.   public ErogazioneModIRestRispostaSicurezzaMessaggio url(String url) {
  165.     this.url = url;
  166.     return this;
  167.   }

  168.  /**
  169.    * Get keystore
  170.    * @return keystore
  171.   **/
  172.   @JsonProperty("keystore")
  173.   @NotNull
  174.   @Valid
  175.   public OneOfErogazioneModIRestRispostaSicurezzaMessaggioKeystore getKeystore() {
  176.     return this.keystore;
  177.   }

  178.   public void setKeystore(OneOfErogazioneModIRestRispostaSicurezzaMessaggioKeystore keystore) {
  179.     this.keystore = keystore;
  180.   }

  181.   public ErogazioneModIRestRispostaSicurezzaMessaggio keystore(OneOfErogazioneModIRestRispostaSicurezzaMessaggioKeystore keystore) {
  182.     this.keystore = keystore;
  183.     return this;
  184.   }

  185.  /**
  186.    * Get timeToLive
  187.    * @return timeToLive
  188.   **/
  189.   @JsonProperty("time_to_live")
  190.   @Valid
  191.   public Integer getTimeToLive() {
  192.     return this.timeToLive;
  193.   }

  194.   public void setTimeToLive(Integer timeToLive) {
  195.     this.timeToLive = timeToLive;
  196.   }

  197.   public ErogazioneModIRestRispostaSicurezzaMessaggio timeToLive(Integer timeToLive) {
  198.     this.timeToLive = timeToLive;
  199.     return this;
  200.   }

  201.  /**
  202.    * Indicare i claims richiesti (nome=valore); è possibile elencare differenti valori ammissibili separandoli con la virgola
  203.    * @return claims
  204.   **/
  205.   @JsonProperty("claims")
  206.   @Valid
  207.   public List<String> getClaims() {
  208.     return this.claims;
  209.   }

  210.   public void setClaims(List<String> claims) {
  211.     this.claims = claims;
  212.   }

  213.   public ErogazioneModIRestRispostaSicurezzaMessaggio claims(List<String> claims) {
  214.     this.claims = claims;
  215.     return this;
  216.   }

  217.   public ErogazioneModIRestRispostaSicurezzaMessaggio addClaimsItem(String claimsItem) {
  218.     this.claims.add(claimsItem);
  219.     return this;
  220.   }

  221.  /**
  222.    * Get contemporaneita
  223.    * @return contemporaneita
  224.   **/
  225.   @JsonProperty("contemporaneita")
  226.   @Valid
  227.   public ErogazioneModIRestRispostaSicurezzaMessaggioContemporaneita getContemporaneita() {
  228.     return this.contemporaneita;
  229.   }

  230.   public void setContemporaneita(ErogazioneModIRestRispostaSicurezzaMessaggioContemporaneita contemporaneita) {
  231.     this.contemporaneita = contemporaneita;
  232.   }

  233.   public ErogazioneModIRestRispostaSicurezzaMessaggio contemporaneita(ErogazioneModIRestRispostaSicurezzaMessaggioContemporaneita contemporaneita) {
  234.     this.contemporaneita = contemporaneita;
  235.     return this;
  236.   }


  237.   @Override
  238.   public String toString() {
  239.     StringBuilder sb = new StringBuilder();
  240.     sb.append("class ErogazioneModIRestRispostaSicurezzaMessaggio {\n");
  241.    
  242.     sb.append("    algoritmo: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.algoritmo)).append("\n");
  243.     sb.append("    headerHttpFirmare: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.headerHttpFirmare)).append("\n");
  244.     sb.append("    riferimentoX509: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.riferimentoX509)).append("\n");
  245.     sb.append("    riferimentoX509Risposta: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.riferimentoX509Risposta)).append("\n");
  246.     sb.append("    certificateChain: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.certificateChain)).append("\n");
  247.     sb.append("    url: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.url)).append("\n");
  248.     sb.append("    keystore: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.keystore)).append("\n");
  249.     sb.append("    timeToLive: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.timeToLive)).append("\n");
  250.     sb.append("    claims: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.claims)).append("\n");
  251.     sb.append("    contemporaneita: ").append(ErogazioneModIRestRispostaSicurezzaMessaggio.toIndentedString(this.contemporaneita)).append("\n");
  252.     sb.append("}");
  253.     return sb.toString();
  254.   }

  255.   /**
  256.    * Convert the given object to string with each line indented by 4 spaces
  257.    * (except the first line).
  258.    */
  259.   private static String toIndentedString(java.lang.Object o) {
  260.     if (o == null) {
  261.       return "null";
  262.     }
  263.     return o.toString().replace("\n", "\n    ");
  264.   }
  265. }