FruizioneModISoapRichiestaSicurezzaMessaggio.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 FruizioneModISoapRichiestaSicurezzaMessaggio  {
  27.  
  28.   @Schema(description = "")
  29.   private ModISicurezzaMessaggioSoapAlgoritmoFirma algoritmo = null;
  30.  
  31.   @Schema(description = "")
  32.   private ModISicurezzaMessaggioSoapFormaCanonicaXml formaCanonicaXml = null;
  33.  
  34.   @Schema(description = "")
  35.   private List<String> headerSoapFirmare = null;
  36.  
  37.   @Schema(description = "")
  38.   private ModISicurezzaMessaggioSoapRiferimentoX509 riferimentoX509 = null;
  39.  
  40.   @Schema(description = "")
  41.   private Boolean certificateChain = null;
  42.  
  43.   @Schema(description = "")
  44.   @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 )
  45.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  46.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreDefault.class, name = "default"),
  47.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreRidefinito.class, name = "ridefinito")  })
  48.   private OneOfFruizioneModISoapRichiestaSicurezzaMessaggioKeystore keystore = null;
  49.  
  50.   @Schema(description = "")
  51.   private Boolean keystoreTokenPolicy = null;
  52.  
  53.   @Schema(description = "")
  54.   private Boolean includiSignatureToken = null;
  55.  
  56.   @Schema(description = "")
  57.   private Integer timeToLive = 300;
  58.  
  59.   @Schema(description = "")
  60.   private String wsaTo = null;
  61.  
  62.   @Schema(description = "")
  63.   private FruizioneModIRichiestaInformazioneUtente informazioniUtenteCodiceEnte = null;
  64.  
  65.   @Schema(description = "")
  66.   private FruizioneModIRichiestaInformazioneUtente informazioniUtenteUserid = null;
  67.  
  68.   @Schema(description = "")
  69.   private FruizioneModIRichiestaInformazioneUtente informazioniUtenteIndirizzoIp = null;
  70.  
  71.   @Schema(description = "")
  72.   private FruizioneModIRichiestaInformazioniUtenteAudit audit = null;
  73.  /**
  74.    * Get algoritmo
  75.    * @return algoritmo
  76.   **/
  77.   @JsonProperty("algoritmo")
  78.   @Valid
  79.   public ModISicurezzaMessaggioSoapAlgoritmoFirma getAlgoritmo() {
  80.     return this.algoritmo;
  81.   }

  82.   public void setAlgoritmo(ModISicurezzaMessaggioSoapAlgoritmoFirma algoritmo) {
  83.     this.algoritmo = algoritmo;
  84.   }

  85.   public FruizioneModISoapRichiestaSicurezzaMessaggio algoritmo(ModISicurezzaMessaggioSoapAlgoritmoFirma algoritmo) {
  86.     this.algoritmo = algoritmo;
  87.     return this;
  88.   }

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

  98.   public void setFormaCanonicaXml(ModISicurezzaMessaggioSoapFormaCanonicaXml formaCanonicaXml) {
  99.     this.formaCanonicaXml = formaCanonicaXml;
  100.   }

  101.   public FruizioneModISoapRichiestaSicurezzaMessaggio formaCanonicaXml(ModISicurezzaMessaggioSoapFormaCanonicaXml formaCanonicaXml) {
  102.     this.formaCanonicaXml = formaCanonicaXml;
  103.     return this;
  104.   }

  105.  /**
  106.    * Get headerSoapFirmare
  107.    * @return headerSoapFirmare
  108.   **/
  109.   @JsonProperty("header_soap_firmare")
  110.   @Valid
  111.   public List<String> getHeaderSoapFirmare() {
  112.     return this.headerSoapFirmare;
  113.   }

  114.   public void setHeaderSoapFirmare(List<String> headerSoapFirmare) {
  115.     this.headerSoapFirmare = headerSoapFirmare;
  116.   }

  117.   public FruizioneModISoapRichiestaSicurezzaMessaggio headerSoapFirmare(List<String> headerSoapFirmare) {
  118.     this.headerSoapFirmare = headerSoapFirmare;
  119.     return this;
  120.   }

  121.   public FruizioneModISoapRichiestaSicurezzaMessaggio addHeaderSoapFirmareItem(String headerSoapFirmareItem) {
  122.     this.headerSoapFirmare.add(headerSoapFirmareItem);
  123.     return this;
  124.   }

  125.  /**
  126.    * Get riferimentoX509
  127.    * @return riferimentoX509
  128.   **/
  129.   @JsonProperty("riferimento_x509")
  130.   @Valid
  131.   public ModISicurezzaMessaggioSoapRiferimentoX509 getRiferimentoX509() {
  132.     return this.riferimentoX509;
  133.   }

  134.   public void setRiferimentoX509(ModISicurezzaMessaggioSoapRiferimentoX509 riferimentoX509) {
  135.     this.riferimentoX509 = riferimentoX509;
  136.   }

  137.   public FruizioneModISoapRichiestaSicurezzaMessaggio riferimentoX509(ModISicurezzaMessaggioSoapRiferimentoX509 riferimentoX509) {
  138.     this.riferimentoX509 = riferimentoX509;
  139.     return this;
  140.   }

  141.  /**
  142.    * Get certificateChain
  143.    * @return certificateChain
  144.   **/
  145.   @JsonProperty("certificate_chain")
  146.   @Valid
  147.   public Boolean isCertificateChain() {
  148.     return this.certificateChain;
  149.   }

  150.   public void setCertificateChain(Boolean certificateChain) {
  151.     this.certificateChain = certificateChain;
  152.   }

  153.   public FruizioneModISoapRichiestaSicurezzaMessaggio certificateChain(Boolean certificateChain) {
  154.     this.certificateChain = certificateChain;
  155.     return this;
  156.   }

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

  166.   public void setKeystore(OneOfFruizioneModISoapRichiestaSicurezzaMessaggioKeystore keystore) {
  167.     this.keystore = keystore;
  168.   }

  169.   public FruizioneModISoapRichiestaSicurezzaMessaggio keystore(OneOfFruizioneModISoapRichiestaSicurezzaMessaggioKeystore keystore) {
  170.     this.keystore = keystore;
  171.     return this;
  172.   }

  173.  /**
  174.    * Get keystoreTokenPolicy
  175.    * @return keystoreTokenPolicy
  176.   **/
  177.   @JsonProperty("keystore_token_policy")
  178.   @Valid
  179.   public Boolean isKeystoreTokenPolicy() {
  180.     return this.keystoreTokenPolicy;
  181.   }

  182.   public void setKeystoreTokenPolicy(Boolean keystoreTokenPolicy) {
  183.     this.keystoreTokenPolicy = keystoreTokenPolicy;
  184.   }

  185.   public FruizioneModISoapRichiestaSicurezzaMessaggio keystoreTokenPolicy(Boolean keystoreTokenPolicy) {
  186.     this.keystoreTokenPolicy = keystoreTokenPolicy;
  187.     return this;
  188.   }

  189.  /**
  190.    * Get includiSignatureToken
  191.    * @return includiSignatureToken
  192.   **/
  193.   @JsonProperty("includi_signature_token")
  194.   @Valid
  195.   public Boolean isIncludiSignatureToken() {
  196.     return this.includiSignatureToken;
  197.   }

  198.   public void setIncludiSignatureToken(Boolean includiSignatureToken) {
  199.     this.includiSignatureToken = includiSignatureToken;
  200.   }

  201.   public FruizioneModISoapRichiestaSicurezzaMessaggio includiSignatureToken(Boolean includiSignatureToken) {
  202.     this.includiSignatureToken = includiSignatureToken;
  203.     return this;
  204.   }

  205.  /**
  206.    * Get timeToLive
  207.    * @return timeToLive
  208.   **/
  209.   @JsonProperty("time_to_live")
  210.   @Valid
  211.   public Integer getTimeToLive() {
  212.     return this.timeToLive;
  213.   }

  214.   public void setTimeToLive(Integer timeToLive) {
  215.     this.timeToLive = timeToLive;
  216.   }

  217.   public FruizioneModISoapRichiestaSicurezzaMessaggio timeToLive(Integer timeToLive) {
  218.     this.timeToLive = timeToLive;
  219.     return this;
  220.   }

  221.  /**
  222.    * Get wsaTo
  223.    * @return wsaTo
  224.   **/
  225.   @JsonProperty("wsa_to")
  226.   @Valid
  227.  @Size(max=4000)  public String getWsaTo() {
  228.     return this.wsaTo;
  229.   }

  230.   public void setWsaTo(String wsaTo) {
  231.     this.wsaTo = wsaTo;
  232.   }

  233.   public FruizioneModISoapRichiestaSicurezzaMessaggio wsaTo(String wsaTo) {
  234.     this.wsaTo = wsaTo;
  235.     return this;
  236.   }

  237.  /**
  238.    * Get informazioniUtenteCodiceEnte
  239.    * @return informazioniUtenteCodiceEnte
  240.   **/
  241.   @JsonProperty("informazioni_utente_codice_ente")
  242.   @Valid
  243.   public FruizioneModIRichiestaInformazioneUtente getInformazioniUtenteCodiceEnte() {
  244.     return this.informazioniUtenteCodiceEnte;
  245.   }

  246.   public void setInformazioniUtenteCodiceEnte(FruizioneModIRichiestaInformazioneUtente informazioniUtenteCodiceEnte) {
  247.     this.informazioniUtenteCodiceEnte = informazioniUtenteCodiceEnte;
  248.   }

  249.   public FruizioneModISoapRichiestaSicurezzaMessaggio informazioniUtenteCodiceEnte(FruizioneModIRichiestaInformazioneUtente informazioniUtenteCodiceEnte) {
  250.     this.informazioniUtenteCodiceEnte = informazioniUtenteCodiceEnte;
  251.     return this;
  252.   }

  253.  /**
  254.    * Get informazioniUtenteUserid
  255.    * @return informazioniUtenteUserid
  256.   **/
  257.   @JsonProperty("informazioni_utente_userid")
  258.   @Valid
  259.   public FruizioneModIRichiestaInformazioneUtente getInformazioniUtenteUserid() {
  260.     return this.informazioniUtenteUserid;
  261.   }

  262.   public void setInformazioniUtenteUserid(FruizioneModIRichiestaInformazioneUtente informazioniUtenteUserid) {
  263.     this.informazioniUtenteUserid = informazioniUtenteUserid;
  264.   }

  265.   public FruizioneModISoapRichiestaSicurezzaMessaggio informazioniUtenteUserid(FruizioneModIRichiestaInformazioneUtente informazioniUtenteUserid) {
  266.     this.informazioniUtenteUserid = informazioniUtenteUserid;
  267.     return this;
  268.   }

  269.  /**
  270.    * Get informazioniUtenteIndirizzoIp
  271.    * @return informazioniUtenteIndirizzoIp
  272.   **/
  273.   @JsonProperty("informazioni_utente_indirizzo_ip")
  274.   @Valid
  275.   public FruizioneModIRichiestaInformazioneUtente getInformazioniUtenteIndirizzoIp() {
  276.     return this.informazioniUtenteIndirizzoIp;
  277.   }

  278.   public void setInformazioniUtenteIndirizzoIp(FruizioneModIRichiestaInformazioneUtente informazioniUtenteIndirizzoIp) {
  279.     this.informazioniUtenteIndirizzoIp = informazioniUtenteIndirizzoIp;
  280.   }

  281.   public FruizioneModISoapRichiestaSicurezzaMessaggio informazioniUtenteIndirizzoIp(FruizioneModIRichiestaInformazioneUtente informazioniUtenteIndirizzoIp) {
  282.     this.informazioniUtenteIndirizzoIp = informazioniUtenteIndirizzoIp;
  283.     return this;
  284.   }

  285.  /**
  286.    * Get audit
  287.    * @return audit
  288.   **/
  289.   @JsonProperty("audit")
  290.   @Valid
  291.   public FruizioneModIRichiestaInformazioniUtenteAudit getAudit() {
  292.     return this.audit;
  293.   }

  294.   public void setAudit(FruizioneModIRichiestaInformazioniUtenteAudit audit) {
  295.     this.audit = audit;
  296.   }

  297.   public FruizioneModISoapRichiestaSicurezzaMessaggio audit(FruizioneModIRichiestaInformazioniUtenteAudit audit) {
  298.     this.audit = audit;
  299.     return this;
  300.   }


  301.   @Override
  302.   public String toString() {
  303.     StringBuilder sb = new StringBuilder();
  304.     sb.append("class FruizioneModISoapRichiestaSicurezzaMessaggio {\n");
  305.    
  306.     sb.append("    algoritmo: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.algoritmo)).append("\n");
  307.     sb.append("    formaCanonicaXml: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.formaCanonicaXml)).append("\n");
  308.     sb.append("    headerSoapFirmare: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.headerSoapFirmare)).append("\n");
  309.     sb.append("    riferimentoX509: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.riferimentoX509)).append("\n");
  310.     sb.append("    certificateChain: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.certificateChain)).append("\n");
  311.     sb.append("    keystore: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.keystore)).append("\n");
  312.     sb.append("    keystoreTokenPolicy: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.keystoreTokenPolicy)).append("\n");
  313.     sb.append("    includiSignatureToken: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.includiSignatureToken)).append("\n");
  314.     sb.append("    timeToLive: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.timeToLive)).append("\n");
  315.     sb.append("    wsaTo: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.wsaTo)).append("\n");
  316.     sb.append("    informazioniUtenteCodiceEnte: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.informazioniUtenteCodiceEnte)).append("\n");
  317.     sb.append("    informazioniUtenteUserid: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.informazioniUtenteUserid)).append("\n");
  318.     sb.append("    informazioniUtenteIndirizzoIp: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.informazioniUtenteIndirizzoIp)).append("\n");
  319.     sb.append("    audit: ").append(FruizioneModISoapRichiestaSicurezzaMessaggio.toIndentedString(this.audit)).append("\n");
  320.     sb.append("}");
  321.     return sb.toString();
  322.   }

  323.   /**
  324.    * Convert the given object to string with each line indented by 4 spaces
  325.    * (except the first line).
  326.    */
  327.   private static String toIndentedString(java.lang.Object o) {
  328.     if (o == null) {
  329.       return "null";
  330.     }
  331.     return o.toString().replace("\n", "\n    ");
  332.   }
  333. }