com.prowidesoftware.swift.model.mx.dic.CryptographicKey6 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateTimeAdapter;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
/**
* Cryptographic Key.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CryptographicKey6", propOrder = {
"nm",
"id",
"vrsn",
"tp",
"fctn",
"actvtnDt",
"deactvtnDt",
"ncrptdKeyVal",
"cert",
"iccRltdData"
})
public class CryptographicKey6 {
@XmlElement(name = "Nm")
protected String nm;
@XmlElement(name = "Id", required = true)
protected String id;
@XmlElement(name = "Vrsn")
protected String vrsn;
@XmlElement(name = "Tp", required = true)
@XmlSchemaType(name = "string")
protected CryptographicKeyType3Code tp;
@XmlElement(name = "Fctn", required = true)
@XmlSchemaType(name = "string")
protected List fctn;
@XmlElement(name = "ActvtnDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime actvtnDt;
@XmlElement(name = "DeactvtnDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime deactvtnDt;
@XmlElement(name = "NcrptdKeyVal")
protected ContentInformationType10 ncrptdKeyVal;
@XmlElement(name = "Cert")
protected List cert;
@XmlElement(name = "ICCRltdData")
protected byte[] iccRltdData;
/**
* Gets the value of the nm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNm() {
return nm;
}
/**
* Sets the value of the nm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CryptographicKey6 setNm(String value) {
this.nm = value;
return this;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CryptographicKey6 setId(String value) {
this.id = value;
return this;
}
/**
* Gets the value of the vrsn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVrsn() {
return vrsn;
}
/**
* Sets the value of the vrsn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CryptographicKey6 setVrsn(String value) {
this.vrsn = value;
return this;
}
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link CryptographicKeyType3Code }
*
*/
public CryptographicKeyType3Code getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link CryptographicKeyType3Code }
*
*/
public CryptographicKey6 setTp(CryptographicKeyType3Code value) {
this.tp = value;
return this;
}
/**
* Gets the value of the fctn 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 fctn property.
*
*
* For example, to add a new item, do as follows:
*
* getFctn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link KeyUsage1Code }
*
*
* @return
* The value of the fctn property.
*/
public List getFctn() {
if (fctn == null) {
fctn = new ArrayList<>();
}
return this.fctn;
}
/**
* Gets the value of the actvtnDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getActvtnDt() {
return actvtnDt;
}
/**
* Sets the value of the actvtnDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CryptographicKey6 setActvtnDt(OffsetDateTime value) {
this.actvtnDt = value;
return this;
}
/**
* Gets the value of the deactvtnDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getDeactvtnDt() {
return deactvtnDt;
}
/**
* Sets the value of the deactvtnDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public CryptographicKey6 setDeactvtnDt(OffsetDateTime value) {
this.deactvtnDt = value;
return this;
}
/**
* Gets the value of the ncrptdKeyVal property.
*
* @return
* possible object is
* {@link ContentInformationType10 }
*
*/
public ContentInformationType10 getNcrptdKeyVal() {
return ncrptdKeyVal;
}
/**
* Sets the value of the ncrptdKeyVal property.
*
* @param value
* allowed object is
* {@link ContentInformationType10 }
*
*/
public CryptographicKey6 setNcrptdKeyVal(ContentInformationType10 value) {
this.ncrptdKeyVal = 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 iccRltdData property.
*
* @return
* possible object is
* byte[]
*/
public byte[] getICCRltdData() {
return iccRltdData;
}
/**
* Sets the value of the iccRltdData property.
*
* @param value
* allowed object is
* byte[]
*/
public CryptographicKey6 setICCRltdData(byte[] value) {
this.iccRltdData = 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 fctn list.
* @see #getFctn()
*
*/
public CryptographicKey6 addFctn(KeyUsage1Code fctn) {
getFctn().add(fctn);
return this;
}
/**
* Adds a new item to the cert list.
* @see #getCert()
*
*/
public CryptographicKey6 addCert(byte[] cert) {
getCert().add(cert);
return this;
}
}