CredenzialiSoggetto.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.registry;

  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.registry.constants.CredenzialeTipo;
  27. import java.io.Serializable;


  28. /** <p>Java class for credenziali-soggetto complex type.
  29.  *
  30.  * <p>The following schema fragment specifies the expected content contained within this class.
  31.  *
  32.  * <pre>
  33.  * &lt;complexType name="credenziali-soggetto"&gt;
  34.  *      &lt;attribute name="tipo" type="{http://www.openspcoop2.org/core/registry}CredenzialeTipo" use="optional" default="ssl"/&gt;
  35.  *      &lt;attribute name="user" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  36.  *      &lt;attribute name="password" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  37.  *      &lt;attribute name="app-id" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  38.  *      &lt;attribute name="subject" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  39.  *      &lt;attribute name="cn-subject" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  40.  *      &lt;attribute name="issuer" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  41.  *      &lt;attribute name="cn-issuer" type="{http://www.w3.org/2001/XMLSchema}string" use="optional"/&gt;
  42.  *      &lt;attribute name="certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary" use="optional"/&gt;
  43.  *      &lt;attribute name="certificate-strict-verification" type="{http://www.w3.org/2001/XMLSchema}boolean" use="optional" default="false"/&gt;
  44.  * &lt;/complexType&gt;
  45.  * </pre>
  46.  *
  47.  * @version $Rev$, $Date$
  48.  *
  49.  * @author Poli Andrea (poli@link.it)
  50.  * @author $Author$
  51.  * */

  52. @XmlAccessorType(XmlAccessType.FIELD)
  53. @XmlType(name = "credenziali-soggetto")

  54. @XmlRootElement(name = "credenziali-soggetto")

  55. public class CredenzialiSoggetto extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  56.   public CredenzialiSoggetto() {
  57.     super();
  58.   }

  59.   public void setTipoRawEnumValue(String value) {
  60.     this.tipo = (CredenzialeTipo) CredenzialeTipo.toEnumConstantFromString(value);
  61.   }

  62.   public String getTipoRawEnumValue() {
  63.     if(this.tipo == null){
  64.         return null;
  65.     }else{
  66.         return this.tipo.toString();
  67.     }
  68.   }

  69.   public org.openspcoop2.core.registry.constants.CredenzialeTipo getTipo() {
  70.     return this.tipo;
  71.   }

  72.   public void setTipo(org.openspcoop2.core.registry.constants.CredenzialeTipo tipo) {
  73.     this.tipo = tipo;
  74.   }

  75.   public java.lang.String getUser() {
  76.     return this.user;
  77.   }

  78.   public void setUser(java.lang.String user) {
  79.     this.user = user;
  80.   }

  81.   public java.lang.String getPassword() {
  82.     return this.password;
  83.   }

  84.   public void setPassword(java.lang.String password) {
  85.     this.password = password;
  86.   }

  87.   public boolean isAppId() {
  88.     return this.appId;
  89.   }

  90.   public boolean getAppId() {
  91.     return this.appId;
  92.   }

  93.   public void setAppId(boolean appId) {
  94.     this.appId = appId;
  95.   }

  96.   public java.lang.String getSubject() {
  97.     return this.subject;
  98.   }

  99.   public void setSubject(java.lang.String subject) {
  100.     this.subject = subject;
  101.   }

  102.   public java.lang.String getCnSubject() {
  103.     return this.cnSubject;
  104.   }

  105.   public void setCnSubject(java.lang.String cnSubject) {
  106.     this.cnSubject = cnSubject;
  107.   }

  108.   public java.lang.String getIssuer() {
  109.     return this.issuer;
  110.   }

  111.   public void setIssuer(java.lang.String issuer) {
  112.     this.issuer = issuer;
  113.   }

  114.   public java.lang.String getCnIssuer() {
  115.     return this.cnIssuer;
  116.   }

  117.   public void setCnIssuer(java.lang.String cnIssuer) {
  118.     this.cnIssuer = cnIssuer;
  119.   }

  120.   public byte[] getCertificate() {
  121.     return this.certificate;
  122.   }

  123.   public void setCertificate(byte[] certificate) {
  124.     this.certificate = certificate;
  125.   }

  126.   public boolean isCertificateStrictVerification() {
  127.     return this.certificateStrictVerification;
  128.   }

  129.   public boolean getCertificateStrictVerification() {
  130.     return this.certificateStrictVerification;
  131.   }

  132.   public void setCertificateStrictVerification(boolean certificateStrictVerification) {
  133.     this.certificateStrictVerification = certificateStrictVerification;
  134.   }

  135.   private static final long serialVersionUID = 1L;



  136.   @javax.xml.bind.annotation.XmlTransient
  137.   protected java.lang.String tipoRawEnumValue;

  138.   @XmlAttribute(name="tipo",required=false)
  139.   protected CredenzialeTipo tipo = (CredenzialeTipo) CredenzialeTipo.toEnumConstantFromString("ssl");

  140.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  141.   @XmlAttribute(name="user",required=false)
  142.   protected java.lang.String user;

  143.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  144.   @XmlAttribute(name="password",required=false)
  145.   protected java.lang.String password;

  146.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  147.   @XmlAttribute(name="app-id",required=false)
  148.   protected boolean appId = false;

  149.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  150.   @XmlAttribute(name="subject",required=false)
  151.   protected java.lang.String subject;

  152.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  153.   @XmlAttribute(name="cn-subject",required=false)
  154.   protected java.lang.String cnSubject;

  155.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  156.   @XmlAttribute(name="issuer",required=false)
  157.   protected java.lang.String issuer;

  158.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  159.   @XmlAttribute(name="cn-issuer",required=false)
  160.   protected java.lang.String cnIssuer;

  161.   @javax.xml.bind.annotation.XmlSchemaType(name="base64Binary")
  162.   @XmlAttribute(name="certificate",required=false)
  163.   protected byte[] certificate;

  164.   @javax.xml.bind.annotation.XmlSchemaType(name="boolean")
  165.   @XmlAttribute(name="certificate-strict-verification",required=false)
  166.   protected boolean certificateStrictVerification = false;

  167. }