Package com.adyen.model.nexo
Class AuthenticatedData
- java.lang.Object
-
- com.adyen.model.nexo.AuthenticatedData
-
public class AuthenticatedData extends Object
Definition: Cryptographic Message Syntax (CMS) data structure containing MACed data with encryption key -- Reference: RFC 3852: Cryptographic Message Syntax (CMS) -- Usage: This data structure contains: the version of the data structure (which is v0 in EPAS protocol context) the protected encrytion key for every adressee (recipient) the encrypted dataJava class for AuthenticatedData complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AuthenticatedData"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice maxOccurs="unbounded"> <element name="KeyTransport" type="{}KeyTransport"/> <element name="KEK" type="{}KEK"/> </choice> <element name="MACAlgorithm" type="{}AlgorithmIdentifier"/> <element name="EncapsulatedContent" type="{}EncapsulatedContent"/> </sequence> <attribute name="Version" type="{}VersionType" default="v0" /> <attribute name="MAC" use="required" type="{}MAC" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected EncapsulatedContentencapsulatedContentThe Encapsulated content.protected List<Object>keyTransportOrKEKThe Key transport or kek.protected byte[]macThe Mac.protected AlgorithmIdentifiermacAlgorithmThe Mac algorithm.protected VersionTypeversionThe Version.
-
Constructor Summary
Constructors Constructor Description AuthenticatedData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncapsulatedContentgetEncapsulatedContent()Gets the value of the encapsulatedContent property.List<Object>getKeyTransportOrKEK()Gets the value of the keyTransportOrKEK property.byte[]getMAC()Gets the value of the mac property.AlgorithmIdentifiergetMACAlgorithm()Gets the value of the macAlgorithm property.VersionTypegetVersion()Gets the value of the version property.voidsetEncapsulatedContent(EncapsulatedContent value)Sets the value of the encapsulatedContent property.voidsetMAC(byte[] value)Sets the value of the mac property.voidsetMACAlgorithm(AlgorithmIdentifier value)Sets the value of the macAlgorithm property.voidsetVersion(VersionType value)Sets the value of the version property.
-
-
-
Field Detail
-
macAlgorithm
protected AlgorithmIdentifier macAlgorithm
The Mac algorithm.
-
encapsulatedContent
protected EncapsulatedContent encapsulatedContent
The Encapsulated content.
-
version
protected VersionType version
The Version.
-
mac
protected byte[] mac
The Mac.
-
-
Method Detail
-
getKeyTransportOrKEK
public List<Object> getKeyTransportOrKEK()
Gets the value of the keyTransportOrKEK 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
setmethod for the keyTransportOrKEK property.For example, to add a new item, do as follows:
getKeyTransportOrKEK().add(newItem);Objects of the following type(s) are allowed in the list
KeyTransportKEK- Returns:
- the key transport or kek
-
getMACAlgorithm
public AlgorithmIdentifier getMACAlgorithm()
Gets the value of the macAlgorithm property.- Returns:
- possible object is
AlgorithmIdentifier
-
setMACAlgorithm
public void setMACAlgorithm(AlgorithmIdentifier value)
Sets the value of the macAlgorithm property.- Parameters:
value- allowed object isAlgorithmIdentifier
-
getEncapsulatedContent
public EncapsulatedContent getEncapsulatedContent()
Gets the value of the encapsulatedContent property.- Returns:
- possible object is
EncapsulatedContent
-
setEncapsulatedContent
public void setEncapsulatedContent(EncapsulatedContent value)
Sets the value of the encapsulatedContent property.- Parameters:
value- allowed object isEncapsulatedContent
-
getVersion
public VersionType getVersion()
Gets the value of the version property.- Returns:
- possible object is
VersionType
-
setVersion
public void setVersion(VersionType value)
Sets the value of the version property.- Parameters:
value- allowed object isVersionType
-
getMAC
public byte[] getMAC()
Gets the value of the mac property.- Returns:
- possible object is byte[]
-
setMAC
public void setMAC(byte[] value)
Sets the value of the mac property.- Parameters:
value- allowed object is byte[]
-
-