ModIKeyStoreFileApplicativo.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 io.swagger.v3.oas.annotations.media.Schema;
  22. import com.fasterxml.jackson.annotation.JsonProperty;
  23. import javax.validation.Valid;

  24. public class ModIKeyStoreFileApplicativo extends ModIKeyStoreFile implements OneOfModIApplicativoSicurezzaMessaggioKeystore {
  25.  
  26.   @Schema(description = "")
  27.   private byte[] keystoreCertificato = null;
  28.  /**
  29.    * Get keystoreCertificato
  30.    * @return keystoreCertificato
  31.   **/
  32.   @JsonProperty("keystore_certificato")
  33.   @Valid
  34.   public byte[] getKeystoreCertificato() {
  35.     return this.keystoreCertificato;
  36.   }

  37.   public void setKeystoreCertificato(byte[] keystoreCertificato) {
  38.     this.keystoreCertificato = keystoreCertificato;
  39.   }

  40.   public ModIKeyStoreFileApplicativo keystoreCertificato(byte[] keystoreCertificato) {
  41.     this.keystoreCertificato = keystoreCertificato;
  42.     return this;
  43.   }


  44.   @Override
  45.   public String toString() {
  46.     StringBuilder sb = new StringBuilder();
  47.     sb.append("class ModIKeyStoreFileApplicativo {\n");
  48.     sb.append("    ").append(ModIKeyStoreFileApplicativo.toIndentedString(super.toString())).append("\n");
  49.     sb.append("    keystoreCertificato: ").append(ModIKeyStoreFileApplicativo.toIndentedString(this.keystoreCertificato)).append("\n");
  50.     sb.append("}");
  51.     return sb.toString();
  52.   }

  53.   /**
  54.    * Convert the given object to string with each line indented by 4 spaces
  55.    * (except the first line).
  56.    */
  57.   private static String toIndentedString(java.lang.Object o) {
  58.     if (o == null) {
  59.       return "null";
  60.     }
  61.     return o.toString().replace("\n", "\n    ");
  62.   }
  63. }