ForwardProxyConfigurazioneToken.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.pdd.config;

  21. import java.io.Serializable;

  22. /**
  23.  * ForwardProxyConfigurazione
  24.  *
  25.  *
  26.  * @author Poli Andrea (apoli@link.it)
  27.  * @author $Author$
  28.  * @version $Rev$, $Date$
  29.  */
  30. public class ForwardProxyConfigurazioneToken implements Serializable {

  31.    
  32.     /**
  33.      *
  34.      */
  35.     private static final long serialVersionUID = 1L;
  36.    
  37.     protected boolean tokenDynamicDiscoveryEnabled = false;
  38.     protected boolean tokenJwtValidationEnabled = false;
  39.     protected boolean tokenIntrospectionEnabled = false;
  40.     protected boolean tokenUserInfoEnabled = false;
  41.     protected boolean tokenRetrieveEnabled = false;
  42.     protected boolean attributeAuthorityEnabled = false;
  43.     protected boolean attributeAuthorityResponseJwtValidationEnabled = false;
  44.    
  45.    
  46.     public ForwardProxyConfigurazioneToken() {
  47.         // nop
  48.     }
  49.    
  50.     @Override
  51.     public String toString(){
  52.         StringBuilder sb = new StringBuilder();
  53.         sb.append("token-dynamic-discovery-enabled: ").append(this.tokenDynamicDiscoveryEnabled);
  54.         sb.append("token-jwt-validation-enabled: ").append(this.tokenJwtValidationEnabled);
  55.         sb.append("token-introspection-enabled: ").append(this.tokenIntrospectionEnabled);
  56.         sb.append("token-userinfo-enabled: ").append(this.tokenUserInfoEnabled);
  57.         sb.append("token-retrieve-enabled: ").append(this.tokenRetrieveEnabled);
  58.         sb.append("attribute-authority-enabled: ").append(this.attributeAuthorityEnabled);
  59.         sb.append("attribute-authority-response-jwt-validation-enabled: ").append(this.attributeAuthorityResponseJwtValidationEnabled);
  60.         return sb.toString();
  61.     }  
  62.    
  63.     public boolean isTokenDynamicDiscoveryEnabled() {
  64.         return this.tokenDynamicDiscoveryEnabled;
  65.     }
  66.     public void setTokenDynamicDiscoveryEnabled(boolean tokenDynamicDiscoveryEnabled) {
  67.         this.tokenDynamicDiscoveryEnabled = tokenDynamicDiscoveryEnabled;
  68.     }

  69.     public boolean isTokenJwtValidationEnabled() {
  70.         return this.tokenJwtValidationEnabled;
  71.     }
  72.     public void setTokenJwtValidationEnabled(boolean tokenJwtValidationEnabled) {
  73.         this.tokenJwtValidationEnabled = tokenJwtValidationEnabled;
  74.     }
  75.    
  76.     public boolean isTokenIntrospectionEnabled() {
  77.         return this.tokenIntrospectionEnabled;
  78.     }
  79.     public void setTokenIntrospectionEnabled(boolean tokenIntrospectionEnabled) {
  80.         this.tokenIntrospectionEnabled = tokenIntrospectionEnabled;
  81.     }

  82.     public boolean isTokenUserInfoEnabled() {
  83.         return this.tokenUserInfoEnabled;
  84.     }
  85.     public void setTokenUserInfoEnabled(boolean tokenUserInfoEnabled) {
  86.         this.tokenUserInfoEnabled = tokenUserInfoEnabled;
  87.     }

  88.     public boolean isTokenRetrieveEnabled() {
  89.         return this.tokenRetrieveEnabled;
  90.     }
  91.     public void setTokenRetrieveEnabled(boolean tokenRetrieveEnabled) {
  92.         this.tokenRetrieveEnabled = tokenRetrieveEnabled;
  93.     }

  94.     public boolean isAttributeAuthorityEnabled() {
  95.         return this.attributeAuthorityEnabled;
  96.     }
  97.     public void setAttributeAuthorityEnabled(boolean attributeAuthorityEnabled) {
  98.         this.attributeAuthorityEnabled = attributeAuthorityEnabled;
  99.     }
  100.    
  101.     public boolean isAttributeAuthorityResponseJwtValidationEnabled() {
  102.         return this.attributeAuthorityResponseJwtValidationEnabled;
  103.     }
  104.     public void setAttributeAuthorityResponseJwtValidationEnabled(boolean attributeAuthorityResponseJwtValidationEnabled) {
  105.         this.attributeAuthorityResponseJwtValidationEnabled = attributeAuthorityResponseJwtValidationEnabled;
  106.     }
  107.    
  108. }