com.prowidesoftware.swift.model.mx.dic.AuthenticatedData5 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.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 = "AuthenticatedData5", propOrder = {
"vrsn",
"rcpt",
"macAlgo",
"ncpsltdCntt",
"mac"
})
public class AuthenticatedData5 {
@XmlElement(name = "Vrsn")
protected BigDecimal vrsn;
@XmlElement(name = "Rcpt", required = true)
protected List rcpt;
@XmlElement(name = "MACAlgo", required = true)
protected AlgorithmIdentification22 macAlgo;
@XmlElement(name = "NcpsltdCntt", required = true)
protected EncapsulatedContent3 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 AuthenticatedData5 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 JAXB object.
* This is why there is not a 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 Recipient6Choice }
*
*
*/
public List getRcpt() {
if (rcpt == null) {
rcpt = new ArrayList();
}
return this.rcpt;
}
/**
* Gets the value of the macAlgo property.
*
* @return
* possible object is
* {@link AlgorithmIdentification22 }
*
*/
public AlgorithmIdentification22 getMACAlgo() {
return macAlgo;
}
/**
* Sets the value of the macAlgo property.
*
* @param value
* allowed object is
* {@link AlgorithmIdentification22 }
*
*/
public AuthenticatedData5 setMACAlgo(AlgorithmIdentification22 value) {
this.macAlgo = value;
return this;
}
/**
* Gets the value of the ncpsltdCntt property.
*
* @return
* possible object is
* {@link EncapsulatedContent3 }
*
*/
public EncapsulatedContent3 getNcpsltdCntt() {
return ncpsltdCntt;
}
/**
* Sets the value of the ncpsltdCntt property.
*
* @param value
* allowed object is
* {@link EncapsulatedContent3 }
*
*/
public AuthenticatedData5 setNcpsltdCntt(EncapsulatedContent3 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 AuthenticatedData5 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 AuthenticatedData5 addRcpt(Recipient6Choice rcpt) {
getRcpt().add(rcpt);
return this;
}
}