All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.glassfish.appclient.client.acc.config.ClientCredential Maven / Gradle / Ivy

There is a newer version: 8.0.0-JDK17-M7
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
//


package org.glassfish.appclient.client.acc.config;

import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.NormalizedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.glassfish.appclient.client.acc.config.util.XML.Password;


/**
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "property"
})
@XmlRootElement(name = "client-credential")
public class ClientCredential {

    @XmlAttribute(name = "user-name", required = true)
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String userName;
    @XmlAttribute(name = "password", required = true)
    @XmlJavaTypeAdapter(Adapter3 .class)
    protected Password password;
    @XmlAttribute(name = "realm")
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String realm;
    protected List property;

    public ClientCredential() {
    }

    /**
     * 
     * @param password
     *     Java instance representing xml element's value.
     * @param realm
     *     Java instance representing xml element's value.
     * @param userName
     *     Java instance representing xml element's value.
     */
    public ClientCredential(String userName, Password password, String realm) {
        this.setUserName(userName);
        this.setPassword(password);
        this.setRealm(realm);
    }

    /**
     * Gets the value of the userName property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getUserName() {
        return userName;
    }

    /**
     * Sets the value of the userName property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setUserName(String value) {
        this.userName = value;
    }

    /**
     * Gets the value of the password property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public Password getPassword() {
        return password;
    }

    /**
     * Sets the value of the password property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPassword(Password value) {
        this.password = value;
    }

    /**
     * Gets the value of the realm property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getRealm() {
        return realm;
    }

    /**
     * Sets the value of the realm property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setRealm(String value) {
        this.realm = value;
    }

    /**
     * Gets the value of the property property.
     * 
     * 

This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the property property.

* *

* For example, to add a new item, do as follows: *

*
     * getProperty().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Property } *

* * * @return * The value of the property property. */ public List getProperty() { if (property == null) { property = new ArrayList<>(); } return this.property; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy