ModIApplicativoSicurezzaMessaggio.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 ModIApplicativoSicurezzaMessaggio  {
  26.  
  27.   @Schema(required = true, description = "")
  28.   @com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.EXISTING_PROPERTY, property = "tipologia", visible = true )
  29.   @com.fasterxml.jackson.annotation.JsonSubTypes({
  30.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreArchive.class, name = "archivio"),
  31.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreFileApplicativo.class, name = "filesystem"),
  32.     @com.fasterxml.jackson.annotation.JsonSubTypes.Type(value = ModIKeyStoreHSMApplicativo.class, name = "hsm")  })
  33.   private OneOfModIApplicativoSicurezzaMessaggioKeystore keystore = null;
  34.  
  35.   @Schema(description = "")
  36.   private String replyAudience = null;
  37.  
  38.   @Schema(description = "")
  39.   private String urlX5u = null;
  40.  /**
  41.    * Get keystore
  42.    * @return keystore
  43.   **/
  44.   @JsonProperty("keystore")
  45.   @NotNull
  46.   @Valid
  47.   public OneOfModIApplicativoSicurezzaMessaggioKeystore getKeystore() {
  48.     return this.keystore;
  49.   }

  50.   public void setKeystore(OneOfModIApplicativoSicurezzaMessaggioKeystore keystore) {
  51.     this.keystore = keystore;
  52.   }

  53.   public ModIApplicativoSicurezzaMessaggio keystore(OneOfModIApplicativoSicurezzaMessaggioKeystore keystore) {
  54.     this.keystore = keystore;
  55.     return this;
  56.   }

  57.  /**
  58.    * Get replyAudience
  59.    * @return replyAudience
  60.   **/
  61.   @JsonProperty("reply_audience")
  62.   @Valid
  63.  @Size(max=4000)  public String getReplyAudience() {
  64.     return this.replyAudience;
  65.   }

  66.   public void setReplyAudience(String replyAudience) {
  67.     this.replyAudience = replyAudience;
  68.   }

  69.   public ModIApplicativoSicurezzaMessaggio replyAudience(String replyAudience) {
  70.     this.replyAudience = replyAudience;
  71.     return this;
  72.   }

  73.  /**
  74.    * Get urlX5u
  75.    * @return urlX5u
  76.   **/
  77.   @JsonProperty("url_x5u")
  78.   @Valid
  79.  @Size(max=4000)  public String getUrlX5u() {
  80.     return this.urlX5u;
  81.   }

  82.   public void setUrlX5u(String urlX5u) {
  83.     this.urlX5u = urlX5u;
  84.   }

  85.   public ModIApplicativoSicurezzaMessaggio urlX5u(String urlX5u) {
  86.     this.urlX5u = urlX5u;
  87.     return this;
  88.   }


  89.   @Override
  90.   public String toString() {
  91.     StringBuilder sb = new StringBuilder();
  92.     sb.append("class ModIApplicativoSicurezzaMessaggio {\n");
  93.    
  94.     sb.append("    keystore: ").append(ModIApplicativoSicurezzaMessaggio.toIndentedString(this.keystore)).append("\n");
  95.     sb.append("    replyAudience: ").append(ModIApplicativoSicurezzaMessaggio.toIndentedString(this.replyAudience)).append("\n");
  96.     sb.append("    urlX5u: ").append(ModIApplicativoSicurezzaMessaggio.toIndentedString(this.urlX5u)).append("\n");
  97.     sb.append("}");
  98.     return sb.toString();
  99.   }

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