
no.udi.common_tilgangskontroll.v1.Token Maven / Gradle / Ivy
package no.udi.common_tilgangskontroll.v1;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
* Beskrivelse av pålogging og applikasjonskontekst for en bruker
*
* Java class for Token complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Token">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Applikasjonskontekst" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Brukernavn" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Utlopstidspunkt" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="Signatur" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Token", propOrder = {
"applikasjonskontekst",
"brukernavn",
"utlopstidspunkt",
"signatur"
})
public class Token
implements Serializable, Equals, HashCode
{
@XmlElement(name = "Applikasjonskontekst", required = true)
protected String applikasjonskontekst;
@XmlElement(name = "Brukernavn", required = true)
protected String brukernavn;
@XmlElement(name = "Utlopstidspunkt", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar utlopstidspunkt;
@XmlElement(name = "Signatur", required = true)
protected String signatur;
/**
* Gets the value of the applikasjonskontekst property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getApplikasjonskontekst() {
return applikasjonskontekst;
}
/**
* Sets the value of the applikasjonskontekst property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setApplikasjonskontekst(String value) {
this.applikasjonskontekst = value;
}
/**
* Gets the value of the brukernavn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBrukernavn() {
return brukernavn;
}
/**
* Sets the value of the brukernavn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBrukernavn(String value) {
this.brukernavn = value;
}
/**
* Gets the value of the utlopstidspunkt property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getUtlopstidspunkt() {
return utlopstidspunkt;
}
/**
* Sets the value of the utlopstidspunkt property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setUtlopstidspunkt(XMLGregorianCalendar value) {
this.utlopstidspunkt = value;
}
/**
* Gets the value of the signatur property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSignatur() {
return signatur;
}
/**
* Sets the value of the signatur property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSignatur(String value) {
this.signatur = value;
}
public Token withApplikasjonskontekst(String value) {
setApplikasjonskontekst(value);
return this;
}
public Token withBrukernavn(String value) {
setBrukernavn(value);
return this;
}
public Token withUtlopstidspunkt(XMLGregorianCalendar value) {
setUtlopstidspunkt(value);
return this;
}
public Token withSignatur(String value) {
setSignatur(value);
return this;
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
String theApplikasjonskontekst;
theApplikasjonskontekst = this.getApplikasjonskontekst();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "applikasjonskontekst", theApplikasjonskontekst), currentHashCode, theApplikasjonskontekst);
}
{
String theBrukernavn;
theBrukernavn = this.getBrukernavn();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "brukernavn", theBrukernavn), currentHashCode, theBrukernavn);
}
{
XMLGregorianCalendar theUtlopstidspunkt;
theUtlopstidspunkt = this.getUtlopstidspunkt();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "utlopstidspunkt", theUtlopstidspunkt), currentHashCode, theUtlopstidspunkt);
}
{
String theSignatur;
theSignatur = this.getSignatur();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "signatur", theSignatur), currentHashCode, theSignatur);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
if (!(object instanceof Token)) {
return false;
}
if (this == object) {
return true;
}
final Token that = ((Token) object);
{
String lhsApplikasjonskontekst;
lhsApplikasjonskontekst = this.getApplikasjonskontekst();
String rhsApplikasjonskontekst;
rhsApplikasjonskontekst = that.getApplikasjonskontekst();
if (!strategy.equals(LocatorUtils.property(thisLocator, "applikasjonskontekst", lhsApplikasjonskontekst), LocatorUtils.property(thatLocator, "applikasjonskontekst", rhsApplikasjonskontekst), lhsApplikasjonskontekst, rhsApplikasjonskontekst)) {
return false;
}
}
{
String lhsBrukernavn;
lhsBrukernavn = this.getBrukernavn();
String rhsBrukernavn;
rhsBrukernavn = that.getBrukernavn();
if (!strategy.equals(LocatorUtils.property(thisLocator, "brukernavn", lhsBrukernavn), LocatorUtils.property(thatLocator, "brukernavn", rhsBrukernavn), lhsBrukernavn, rhsBrukernavn)) {
return false;
}
}
{
XMLGregorianCalendar lhsUtlopstidspunkt;
lhsUtlopstidspunkt = this.getUtlopstidspunkt();
XMLGregorianCalendar rhsUtlopstidspunkt;
rhsUtlopstidspunkt = that.getUtlopstidspunkt();
if (!strategy.equals(LocatorUtils.property(thisLocator, "utlopstidspunkt", lhsUtlopstidspunkt), LocatorUtils.property(thatLocator, "utlopstidspunkt", rhsUtlopstidspunkt), lhsUtlopstidspunkt, rhsUtlopstidspunkt)) {
return false;
}
}
{
String lhsSignatur;
lhsSignatur = this.getSignatur();
String rhsSignatur;
rhsSignatur = that.getSignatur();
if (!strategy.equals(LocatorUtils.property(thisLocator, "signatur", lhsSignatur), LocatorUtils.property(thatLocator, "signatur", rhsSignatur), lhsSignatur, rhsSignatur)) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy