com.prowidesoftware.swift.model.mx.dic.AuthenticatedData1 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
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.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Message authentication code (MAC), computed on the data to protect with an encryption key.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AuthenticatedData1", propOrder = {
"vrsn",
"rcpt",
"macAlgo",
"ncpsltdCntt",
"mac"
})
public class AuthenticatedData1 {
@XmlElement(name = "Vrsn")
protected BigDecimal vrsn;
@XmlElement(name = "Rcpt", required = true)
protected List rcpt;
@XmlElement(name = "MACAlgo", required = true)
protected AlgorithmIdentification1 macAlgo;
@XmlElement(name = "NcpsltdCntt", required = true)
protected EncapsulatedContent1 ncpsltdCntt;
@XmlElement(name = "MAC", required = true)
protected byte[] mac;
/**
* Gets the value of the vrsn property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getVrsn() {
return vrsn;
}
/**
* Sets the value of the vrsn property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public AuthenticatedData1 setVrsn(BigDecimal value) {
this.vrsn = value;
return this;
}
/**
* Gets the value of the rcpt 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 Jakarta XML Binding object.
* This is why there is not a {@code set} method for the rcpt property.
*
*
* For example, to add a new item, do as follows:
*
* getRcpt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Recipient1Choice }
*
*
* @return
* The value of the rcpt property.
*/
public List getRcpt() {
if (rcpt == null) {
rcpt = new ArrayList<>();
}
return this.rcpt;
}
/**
* Gets the value of the macAlgo property.
*
* @return
* possible object is
* {@link AlgorithmIdentification1 }
*
*/
public AlgorithmIdentification1 getMACAlgo() {
return macAlgo;
}
/**
* Sets the value of the macAlgo property.
*
* @param value
* allowed object is
* {@link AlgorithmIdentification1 }
*
*/
public AuthenticatedData1 setMACAlgo(AlgorithmIdentification1 value) {
this.macAlgo = value;
return this;
}
/**
* Gets the value of the ncpsltdCntt property.
*
* @return
* possible object is
* {@link EncapsulatedContent1 }
*
*/
public EncapsulatedContent1 getNcpsltdCntt() {
return ncpsltdCntt;
}
/**
* Sets the value of the ncpsltdCntt property.
*
* @param value
* allowed object is
* {@link EncapsulatedContent1 }
*
*/
public AuthenticatedData1 setNcpsltdCntt(EncapsulatedContent1 value) {
this.ncpsltdCntt = value;
return this;
}
/**
* Gets the value of the mac property.
*
* @return
* possible object is
* byte[]
*/
public byte[] getMAC() {
return mac;
}
/**
* Sets the value of the mac property.
*
* @param value
* allowed object is
* byte[]
*/
public AuthenticatedData1 setMAC(byte[] value) {
this.mac = value;
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
/**
* Adds a new item to the rcpt list.
* @see #getRcpt()
*
*/
public AuthenticatedData1 addRcpt(Recipient1Choice rcpt) {
getRcpt().add(rcpt);
return this;
}
}