com.adyen.model.nexo.SignedData Maven / Gradle / Ivy
package com.adyen.model.nexo;
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 java.util.ArrayList;
import java.util.List;
/**
* Definition: Cryptographic Message Syntax (CMS) data structure containing signed data -- Reference: RFC 3852: Cryptographic Message Syntax (CMS) -- Usage: This data structure contains: the version of the data structure (which is v1 in EPAS protocol context) the identifiers of the messageType digest algorithms the encapsulated content the certificates for the verification of the signature
*
* Java class for SignedData complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SignedData">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="DigestAlgorithm" type="{}AlgorithmIdentifier" maxOccurs="unbounded"/>
* <element name="EncapsulatedContent" type="{}EncapsulatedContent"/>
* <element name="Certificate" type="{}Certificate" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Signer" type="{}Signer" maxOccurs="unbounded"/>
* </sequence>
* <attribute name="Version" type="{}VersionType" default="v1" />
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SignedData", propOrder = {
"digestAlgorithm",
"encapsulatedContent",
"certificate",
"signer"
})
public class SignedData {
/**
* The Digest algorithm.
*/
@XmlElement(name = "DigestAlgorithm", required = true)
protected List digestAlgorithm;
/**
* The Encapsulated content.
*/
@XmlElement(name = "EncapsulatedContent", required = true)
protected EncapsulatedContent encapsulatedContent;
/**
* The Certificate.
*/
@XmlElement(name = "Certificate")
protected List certificate;
/**
* The Signer.
*/
@XmlElement(name = "Signer", required = true)
protected List signer;
/**
* The Version.
*/
@XmlElement(name = "Version")
protected VersionType version;
/**
* Gets the value of the digestAlgorithm 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 digestAlgorithm property.
*
*
* For example, to add a new item, do as follows:
*
* getDigestAlgorithm().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AlgorithmIdentifier }
*
* @return the digest algorithm
*/
public List getDigestAlgorithm() {
if (digestAlgorithm == null) {
digestAlgorithm = new ArrayList<>();
}
return this.digestAlgorithm;
}
/**
* Gets the value of the encapsulatedContent property.
*
* @return possible object is {@link EncapsulatedContent }
*/
public EncapsulatedContent getEncapsulatedContent() {
return encapsulatedContent;
}
/**
* Sets the value of the encapsulatedContent property.
*
* @param value allowed object is {@link EncapsulatedContent }
*/
public void setEncapsulatedContent(EncapsulatedContent value) {
this.encapsulatedContent = value;
}
/**
* Gets the value of the certificate 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 certificate property.
*
*
* For example, to add a new item, do as follows:
*
* getCertificate().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* byte[]
*
* @return the certificate
*/
public List getCertificate() {
if (certificate == null) {
certificate = new ArrayList<>();
}
return this.certificate;
}
/**
* Gets the value of the signer 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 signer property.
*
*
* For example, to add a new item, do as follows:
*
* getSigner().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Signer }
*
* @return the signer
*/
public List getSigner() {
if (signer == null) {
signer = new ArrayList<>();
}
return this.signer;
}
/**
* Gets the value of the version property.
*
* @return possible object is {@link VersionType }
*/
public VersionType getVersion() {
if (version == null) {
return VersionType.V_1;
} else {
return version;
}
}
/**
* Sets the value of the version property.
*
* @param value allowed object is {@link VersionType }
*/
public void setVersion(VersionType value) {
this.version = value;
}
}