ModIApplicativoAuthenticationToken.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 ModIApplicativoAuthenticationToken  {
  26.  
  27.   @Schema(description = "")
  28.   private String tokenPolicy = null;
  29.  
  30.   @Schema(required = true, description = "")
  31.   private String identificativo = null;
  32.  
  33.   @Schema(description = "")
  34.   private String kid = null;
  35.  /**
  36.    * Get tokenPolicy
  37.    * @return tokenPolicy
  38.   **/
  39.   @JsonProperty("token_policy")
  40.   @Valid
  41.  @Size(max=255)  public String getTokenPolicy() {
  42.     return this.tokenPolicy;
  43.   }

  44.   public void setTokenPolicy(String tokenPolicy) {
  45.     this.tokenPolicy = tokenPolicy;
  46.   }

  47.   public ModIApplicativoAuthenticationToken tokenPolicy(String tokenPolicy) {
  48.     this.tokenPolicy = tokenPolicy;
  49.     return this;
  50.   }

  51.  /**
  52.    * Get identificativo
  53.    * @return identificativo
  54.   **/
  55.   @JsonProperty("identificativo")
  56.   @NotNull
  57.   @Valid
  58.  @Size(max=2800)  public String getIdentificativo() {
  59.     return this.identificativo;
  60.   }

  61.   public void setIdentificativo(String identificativo) {
  62.     this.identificativo = identificativo;
  63.   }

  64.   public ModIApplicativoAuthenticationToken identificativo(String identificativo) {
  65.     this.identificativo = identificativo;
  66.     return this;
  67.   }

  68.  /**
  69.    * Get kid
  70.    * @return kid
  71.   **/
  72.   @JsonProperty("kid")
  73.   @Valid
  74.  @Size(max=4000)  public String getKid() {
  75.     return this.kid;
  76.   }

  77.   public void setKid(String kid) {
  78.     this.kid = kid;
  79.   }

  80.   public ModIApplicativoAuthenticationToken kid(String kid) {
  81.     this.kid = kid;
  82.     return this;
  83.   }


  84.   @Override
  85.   public String toString() {
  86.     StringBuilder sb = new StringBuilder();
  87.     sb.append("class ModIApplicativoAuthenticationToken {\n");
  88.    
  89.     sb.append("    tokenPolicy: ").append(ModIApplicativoAuthenticationToken.toIndentedString(this.tokenPolicy)).append("\n");
  90.     sb.append("    identificativo: ").append(ModIApplicativoAuthenticationToken.toIndentedString(this.identificativo)).append("\n");
  91.     sb.append("    kid: ").append(ModIApplicativoAuthenticationToken.toIndentedString(this.kid)).append("\n");
  92.     sb.append("}");
  93.     return sb.toString();
  94.   }

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