com.prowidesoftware.swift.model.mx.dic.SignedData1 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 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;
/**
* Digital signature of data, with an asymmetric key.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SignedData1", propOrder = {
"vrsn",
"dgstAlgo",
"ncpsltdCntt",
"cert",
"sgnr"
})
public class SignedData1 {
@XmlElement(name = "Vrsn")
protected BigDecimal vrsn;
@XmlElement(name = "DgstAlgo", required = true)
protected List dgstAlgo;
@XmlElement(name = "NcpsltdCntt", required = true)
protected EncapsulatedContent1 ncpsltdCntt;
@XmlElement(name = "Cert")
protected List cert;
@XmlElement(name = "Sgnr", required = true)
protected List sgnr;
/**
* 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 SignedData1 setVrsn(BigDecimal value) {
this.vrsn = value;
return this;
}
/**
* Gets the value of the dgstAlgo 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 dgstAlgo property.
*
*
* For example, to add a new item, do as follows:
*
* getDgstAlgo().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AlgorithmIdentification1 }
*
*
* @return
* The value of the dgstAlgo property.
*/
public List getDgstAlgo() {
if (dgstAlgo == null) {
dgstAlgo = new ArrayList<>();
}
return this.dgstAlgo;
}
/**
* 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 SignedData1 setNcpsltdCntt(EncapsulatedContent1 value) {
this.ncpsltdCntt = value;
return this;
}
/**
* Gets the value of the cert 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 cert property.
*
*
* For example, to add a new item, do as follows:
*
* getCert().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* byte[]
*
* @return
* The value of the cert property.
*/
public List getCert() {
if (cert == null) {
cert = new ArrayList<>();
}
return this.cert;
}
/**
* Gets the value of the sgnr 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 sgnr property.
*
*
* For example, to add a new item, do as follows:
*
* getSgnr().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Signer1 }
*
*
* @return
* The value of the sgnr property.
*/
public List getSgnr() {
if (sgnr == null) {
sgnr = new ArrayList<>();
}
return this.sgnr;
}
@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 dgstAlgo list.
* @see #getDgstAlgo()
*
*/
public SignedData1 addDgstAlgo(AlgorithmIdentification1 dgstAlgo) {
getDgstAlgo().add(dgstAlgo);
return this;
}
/**
* Adds a new item to the cert list.
* @see #getCert()
*
*/
public SignedData1 addCert(byte[] cert) {
getCert().add(cert);
return this;
}
/**
* Adds a new item to the sgnr list.
* @see #getSgnr()
*
*/
public SignedData1 addSgnr(Signer1 sgnr) {
getSgnr().add(sgnr);
return this;
}
}