GestioneToken.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;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlAttribute;
  24. import javax.xml.bind.annotation.XmlElement;
  25. import javax.xml.bind.annotation.XmlRootElement;
  26. import javax.xml.bind.annotation.XmlType;
  27. import org.openspcoop2.core.config.constants.StatoFunzionalita;
  28. import org.openspcoop2.core.config.constants.StatoFunzionalitaConWarning;
  29. import java.io.Serializable;


  30. /** <p>Java class for gestione-token complex type.
  31.  *
  32.  * <p>The following schema fragment specifies the expected content contained within this class.
  33.  *
  34.  * <pre>
  35.  * &lt;complexType name="gestione-token"&gt;
  36.  *      &lt;sequence&gt;
  37.  *          &lt;element name="autenticazione" type="{http://www.openspcoop2.org/core/config}gestione-token-autenticazione" minOccurs="0" maxOccurs="1"/&gt;
  38.  *      &lt;/sequence&gt;
  39.  *      &lt;attribute name="policy" type="{http://www.w3.org/2001/XMLSchema}string" use="required"/&gt;
  40.  *      &lt;attribute name="token-opzionale" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  41.  *      &lt;attribute name="validazione" type="{http://www.openspcoop2.org/core/config}StatoFunzionalitaConWarning" use="optional" default="disabilitato"/&gt;
  42.  *      &lt;attribute name="introspection" type="{http://www.openspcoop2.org/core/config}StatoFunzionalitaConWarning" use="optional" default="disabilitato"/&gt;
  43.  *      &lt;attribute name="userInfo" type="{http://www.openspcoop2.org/core/config}StatoFunzionalitaConWarning" use="optional" default="disabilitato"/&gt;
  44.  *      &lt;attribute name="forward" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  45.  *      &lt;attribute name="options" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  46.  * &lt;/complexType&gt;
  47.  * </pre>
  48.  *
  49.  * @version $Rev$, $Date$
  50.  *
  51.  * @author Poli Andrea (poli@link.it)
  52.  * @author $Author$
  53.  * */

  54. @XmlAccessorType(XmlAccessType.FIELD)
  55. @XmlType(name = "gestione-token",
  56.   propOrder = {
  57.     "autenticazione"
  58.   }
  59. )

  60. @XmlRootElement(name = "gestione-token")

  61. public class GestioneToken extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  62.   public GestioneToken() {
  63.     super();
  64.   }

  65.   public GestioneTokenAutenticazione getAutenticazione() {
  66.     return this.autenticazione;
  67.   }

  68.   public void setAutenticazione(GestioneTokenAutenticazione autenticazione) {
  69.     this.autenticazione = autenticazione;
  70.   }

  71.   public java.lang.String getPolicy() {
  72.     return this.policy;
  73.   }

  74.   public void setPolicy(java.lang.String policy) {
  75.     this.policy = policy;
  76.   }

  77.   public void setTokenOpzionaleRawEnumValue(String value) {
  78.     this.tokenOpzionale = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  79.   }

  80.   public String getTokenOpzionaleRawEnumValue() {
  81.     if(this.tokenOpzionale == null){
  82.         return null;
  83.     }else{
  84.         return this.tokenOpzionale.toString();
  85.     }
  86.   }

  87.   public org.openspcoop2.core.config.constants.StatoFunzionalita getTokenOpzionale() {
  88.     return this.tokenOpzionale;
  89.   }

  90.   public void setTokenOpzionale(org.openspcoop2.core.config.constants.StatoFunzionalita tokenOpzionale) {
  91.     this.tokenOpzionale = tokenOpzionale;
  92.   }

  93.   public void setValidazioneRawEnumValue(String value) {
  94.     this.validazione = (StatoFunzionalitaConWarning) StatoFunzionalitaConWarning.toEnumConstantFromString(value);
  95.   }

  96.   public String getValidazioneRawEnumValue() {
  97.     if(this.validazione == null){
  98.         return null;
  99.     }else{
  100.         return this.validazione.toString();
  101.     }
  102.   }

  103.   public org.openspcoop2.core.config.constants.StatoFunzionalitaConWarning getValidazione() {
  104.     return this.validazione;
  105.   }

  106.   public void setValidazione(org.openspcoop2.core.config.constants.StatoFunzionalitaConWarning validazione) {
  107.     this.validazione = validazione;
  108.   }

  109.   public void setIntrospectionRawEnumValue(String value) {
  110.     this.introspection = (StatoFunzionalitaConWarning) StatoFunzionalitaConWarning.toEnumConstantFromString(value);
  111.   }

  112.   public String getIntrospectionRawEnumValue() {
  113.     if(this.introspection == null){
  114.         return null;
  115.     }else{
  116.         return this.introspection.toString();
  117.     }
  118.   }

  119.   public org.openspcoop2.core.config.constants.StatoFunzionalitaConWarning getIntrospection() {
  120.     return this.introspection;
  121.   }

  122.   public void setIntrospection(org.openspcoop2.core.config.constants.StatoFunzionalitaConWarning introspection) {
  123.     this.introspection = introspection;
  124.   }

  125.   public void setUserInfoRawEnumValue(String value) {
  126.     this.userInfo = (StatoFunzionalitaConWarning) StatoFunzionalitaConWarning.toEnumConstantFromString(value);
  127.   }

  128.   public String getUserInfoRawEnumValue() {
  129.     if(this.userInfo == null){
  130.         return null;
  131.     }else{
  132.         return this.userInfo.toString();
  133.     }
  134.   }

  135.   public org.openspcoop2.core.config.constants.StatoFunzionalitaConWarning getUserInfo() {
  136.     return this.userInfo;
  137.   }

  138.   public void setUserInfo(org.openspcoop2.core.config.constants.StatoFunzionalitaConWarning userInfo) {
  139.     this.userInfo = userInfo;
  140.   }

  141.   public void setForwardRawEnumValue(String value) {
  142.     this.forward = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  143.   }

  144.   public String getForwardRawEnumValue() {
  145.     if(this.forward == null){
  146.         return null;
  147.     }else{
  148.         return this.forward.toString();
  149.     }
  150.   }

  151.   public org.openspcoop2.core.config.constants.StatoFunzionalita getForward() {
  152.     return this.forward;
  153.   }

  154.   public void setForward(org.openspcoop2.core.config.constants.StatoFunzionalita forward) {
  155.     this.forward = forward;
  156.   }

  157.   public java.lang.String getOptions() {
  158.     return this.options;
  159.   }

  160.   public void setOptions(java.lang.String options) {
  161.     this.options = options;
  162.   }

  163.   private static final long serialVersionUID = 1L;



  164.   @XmlElement(name="autenticazione",required=false,nillable=false)
  165.   protected GestioneTokenAutenticazione autenticazione;

  166.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  167.   @XmlAttribute(name="policy",required=true)
  168.   protected java.lang.String policy;

  169.   @javax.xml.bind.annotation.XmlTransient
  170.   protected java.lang.String tokenOpzionaleRawEnumValue;

  171.   @XmlAttribute(name="token-opzionale",required=false)
  172.   protected StatoFunzionalita tokenOpzionale = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  173.   @javax.xml.bind.annotation.XmlTransient
  174.   protected java.lang.String validazioneRawEnumValue;

  175.   @XmlAttribute(name="validazione",required=false)
  176.   protected StatoFunzionalitaConWarning validazione = (StatoFunzionalitaConWarning) StatoFunzionalitaConWarning.toEnumConstantFromString("disabilitato");

  177.   @javax.xml.bind.annotation.XmlTransient
  178.   protected java.lang.String introspectionRawEnumValue;

  179.   @XmlAttribute(name="introspection",required=false)
  180.   protected StatoFunzionalitaConWarning introspection = (StatoFunzionalitaConWarning) StatoFunzionalitaConWarning.toEnumConstantFromString("disabilitato");

  181.   @javax.xml.bind.annotation.XmlTransient
  182.   protected java.lang.String userInfoRawEnumValue;

  183.   @XmlAttribute(name="userInfo",required=false)
  184.   protected StatoFunzionalitaConWarning userInfo = (StatoFunzionalitaConWarning) StatoFunzionalitaConWarning.toEnumConstantFromString("disabilitato");

  185.   @javax.xml.bind.annotation.XmlTransient
  186.   protected java.lang.String forwardRawEnumValue;

  187.   @XmlAttribute(name="forward",required=false)
  188.   protected StatoFunzionalita forward = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  189.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  190.   @XmlAttribute(name="options",required=false)
  191.   protected java.lang.String options;

  192. }