BaseKeyStoreArchive.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 BaseKeyStoreArchive extends BaseKeyStore {
  26.  
  27.   @Schema(required = true, description = "")
  28.   private byte[] keystoreArchivio = null;
  29.  /**
  30.    * Get keystoreArchivio
  31.    * @return keystoreArchivio
  32.   **/
  33.   @JsonProperty("keystore_archivio")
  34.   @NotNull
  35.   @Valid
  36.   public byte[] getKeystoreArchivio() {
  37.     return this.keystoreArchivio;
  38.   }

  39.   public void setKeystoreArchivio(byte[] keystoreArchivio) {
  40.     this.keystoreArchivio = keystoreArchivio;
  41.   }

  42.   public BaseKeyStoreArchive keystoreArchivio(byte[] keystoreArchivio) {
  43.     this.keystoreArchivio = keystoreArchivio;
  44.     return this;
  45.   }


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

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