GestioneTokenAutenticazione.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.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import org.openspcoop2.core.config.constants.StatoFunzionalita;
  27. import java.io.Serializable;


  28. /** <p>Java class for gestione-token-autenticazione complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="gestione-token-autenticazione"&gt;
  34.  *      &lt;attribute name="issuer" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  35.  *      &lt;attribute name="client-id" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  36.  *      &lt;attribute name="subject" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  37.  *      &lt;attribute name="username" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  38.  *      &lt;attribute name="email" type="{http://www.openspcoop2.org/core/config}StatoFunzionalita" use="optional" default="disabilitato"/&gt;
  39.  * &lt;/complexType&gt;
  40.  * </pre>
  41.  *
  42.  * @version $Rev$, $Date$
  43.  *
  44.  * @author Poli Andrea (poli@link.it)
  45.  * @author $Author$
  46.  * */

  47. @XmlAccessorType(XmlAccessType.FIELD)
  48. @XmlType(name = "gestione-token-autenticazione")

  49. @XmlRootElement(name = "gestione-token-autenticazione")

  50. public class GestioneTokenAutenticazione extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  51.   public GestioneTokenAutenticazione() {
  52.     super();
  53.   }

  54.   public void setIssuerRawEnumValue(String value) {
  55.     this.issuer = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  56.   }

  57.   public String getIssuerRawEnumValue() {
  58.     if(this.issuer == null){
  59.         return null;
  60.     }else{
  61.         return this.issuer.toString();
  62.     }
  63.   }

  64.   public org.openspcoop2.core.config.constants.StatoFunzionalita getIssuer() {
  65.     return this.issuer;
  66.   }

  67.   public void setIssuer(org.openspcoop2.core.config.constants.StatoFunzionalita issuer) {
  68.     this.issuer = issuer;
  69.   }

  70.   public void setClientIdRawEnumValue(String value) {
  71.     this.clientId = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  72.   }

  73.   public String getClientIdRawEnumValue() {
  74.     if(this.clientId == null){
  75.         return null;
  76.     }else{
  77.         return this.clientId.toString();
  78.     }
  79.   }

  80.   public org.openspcoop2.core.config.constants.StatoFunzionalita getClientId() {
  81.     return this.clientId;
  82.   }

  83.   public void setClientId(org.openspcoop2.core.config.constants.StatoFunzionalita clientId) {
  84.     this.clientId = clientId;
  85.   }

  86.   public void setSubjectRawEnumValue(String value) {
  87.     this.subject = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  88.   }

  89.   public String getSubjectRawEnumValue() {
  90.     if(this.subject == null){
  91.         return null;
  92.     }else{
  93.         return this.subject.toString();
  94.     }
  95.   }

  96.   public org.openspcoop2.core.config.constants.StatoFunzionalita getSubject() {
  97.     return this.subject;
  98.   }

  99.   public void setSubject(org.openspcoop2.core.config.constants.StatoFunzionalita subject) {
  100.     this.subject = subject;
  101.   }

  102.   public void setUsernameRawEnumValue(String value) {
  103.     this.username = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  104.   }

  105.   public String getUsernameRawEnumValue() {
  106.     if(this.username == null){
  107.         return null;
  108.     }else{
  109.         return this.username.toString();
  110.     }
  111.   }

  112.   public org.openspcoop2.core.config.constants.StatoFunzionalita getUsername() {
  113.     return this.username;
  114.   }

  115.   public void setUsername(org.openspcoop2.core.config.constants.StatoFunzionalita username) {
  116.     this.username = username;
  117.   }

  118.   public void setEmailRawEnumValue(String value) {
  119.     this.email = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString(value);
  120.   }

  121.   public String getEmailRawEnumValue() {
  122.     if(this.email == null){
  123.         return null;
  124.     }else{
  125.         return this.email.toString();
  126.     }
  127.   }

  128.   public org.openspcoop2.core.config.constants.StatoFunzionalita getEmail() {
  129.     return this.email;
  130.   }

  131.   public void setEmail(org.openspcoop2.core.config.constants.StatoFunzionalita email) {
  132.     this.email = email;
  133.   }

  134.   private static final long serialVersionUID = 1L;



  135.   @javax.xml.bind.annotation.XmlTransient
  136.   protected java.lang.String issuerRawEnumValue;

  137.   @XmlAttribute(name="issuer",required=false)
  138.   protected StatoFunzionalita issuer = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  139.   @javax.xml.bind.annotation.XmlTransient
  140.   protected java.lang.String clientIdRawEnumValue;

  141.   @XmlAttribute(name="client-id",required=false)
  142.   protected StatoFunzionalita clientId = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  143.   @javax.xml.bind.annotation.XmlTransient
  144.   protected java.lang.String subjectRawEnumValue;

  145.   @XmlAttribute(name="subject",required=false)
  146.   protected StatoFunzionalita subject = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  147.   @javax.xml.bind.annotation.XmlTransient
  148.   protected java.lang.String usernameRawEnumValue;

  149.   @XmlAttribute(name="username",required=false)
  150.   protected StatoFunzionalita username = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  151.   @javax.xml.bind.annotation.XmlTransient
  152.   protected java.lang.String emailRawEnumValue;

  153.   @XmlAttribute(name="email",required=false)
  154.   protected StatoFunzionalita email = (StatoFunzionalita) StatoFunzionalita.toEnumConstantFromString("disabilitato");

  155. }