Credentials.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.message.context;

  21. import javax.xml.bind.annotation.XmlAccessType;
  22. import javax.xml.bind.annotation.XmlAccessorType;
  23. import javax.xml.bind.annotation.XmlElement;
  24. import javax.xml.bind.annotation.XmlRootElement;
  25. import javax.xml.bind.annotation.XmlType;
  26. import java.io.Serializable;


  27. /** <p>Java class for credentials complex type.
  28.  *
  29.  * <p>The following schema fragment specifies the expected content contained within this class.
  30.  *
  31.  * <pre>
  32.  * &lt;complexType name="credentials"&gt;
  33.  *      &lt;sequence&gt;
  34.  *          &lt;element name="principal" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  35.  *          &lt;element name="subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  36.  *          &lt;element name="username" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  37.  *          &lt;element name="password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0" maxOccurs="1"/&gt;
  38.  *      &lt;/sequence&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 = "credentials",
  49.   propOrder = {
  50.     "principal",
  51.     "subject",
  52.     "username",
  53.     "password"
  54.   }
  55. )

  56. @XmlRootElement(name = "credentials")

  57. public class Credentials extends org.openspcoop2.utils.beans.BaseBeanWithId implements Serializable , Cloneable {
  58.   public Credentials() {
  59.     super();
  60.   }

  61.   public java.lang.String getPrincipal() {
  62.     return this.principal;
  63.   }

  64.   public void setPrincipal(java.lang.String principal) {
  65.     this.principal = principal;
  66.   }

  67.   public java.lang.String getSubject() {
  68.     return this.subject;
  69.   }

  70.   public void setSubject(java.lang.String subject) {
  71.     this.subject = subject;
  72.   }

  73.   public java.lang.String getUsername() {
  74.     return this.username;
  75.   }

  76.   public void setUsername(java.lang.String username) {
  77.     this.username = username;
  78.   }

  79.   public java.lang.String getPassword() {
  80.     return this.password;
  81.   }

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

  85.   private static final long serialVersionUID = 1L;



  86.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  87.   @XmlElement(name="principal",required=false,nillable=false)
  88.   protected java.lang.String principal;

  89.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  90.   @XmlElement(name="subject",required=false,nillable=false)
  91.   protected java.lang.String subject;

  92.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  93.   @XmlElement(name="username",required=false,nillable=false)
  94.   protected java.lang.String username;

  95.   @javax.xml.bind.annotation.XmlSchemaType(name="string")
  96.   @XmlElement(name="password",required=false,nillable=false)
  97.   protected java.lang.String password;

  98. }