Package com.adyen.model.nexo
Class KeyTransport
- java.lang.Object
-
- com.adyen.model.nexo.KeyTransport
-
public class KeyTransport extends Object
Definition: Encryption key using previously distributed asymmetric key -- Reference: RFC 3852: Cryptographic Message Syntax (CMS) -- Usage: This data structure contains: the version of the data structure (v0) the recipient identifier the key encryption algorithm the encrypted keyJava class for KeyTransport complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="KeyTransport"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="RecipientIdentifier" type="{}RecipientIdentifier"/> <element name="KeyEncryptionAlgorithm" type="{}AlgorithmIdentifier"/> </sequence> <attribute name="Version" type="{}VersionType" default="v0" /> <attribute name="EncryptedKey" use="required" type="{}EncryptedKey" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]encryptedKeyThe Encrypted key.protected AlgorithmIdentifierkeyEncryptionAlgorithmThe Key encryption algorithm.protected RecipientIdentifierrecipientIdentifierThe Recipient identifier.protected VersionTypeversionThe Version.
-
Constructor Summary
Constructors Constructor Description KeyTransport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getEncryptedKey()Gets the value of the encryptedKey property.AlgorithmIdentifiergetKeyEncryptionAlgorithm()Gets the value of the keyEncryptionAlgorithm property.RecipientIdentifiergetRecipientIdentifier()Gets the value of the recipientIdentifier property.VersionTypegetVersion()Gets the value of the version property.voidsetEncryptedKey(byte[] value)Sets the value of the encryptedKey property.voidsetKeyEncryptionAlgorithm(AlgorithmIdentifier value)Sets the value of the keyEncryptionAlgorithm property.voidsetRecipientIdentifier(RecipientIdentifier value)Sets the value of the recipientIdentifier property.voidsetVersion(VersionType value)Sets the value of the version property.
-
-
-
Field Detail
-
recipientIdentifier
protected RecipientIdentifier recipientIdentifier
The Recipient identifier.
-
keyEncryptionAlgorithm
protected AlgorithmIdentifier keyEncryptionAlgorithm
The Key encryption algorithm.
-
version
protected VersionType version
The Version.
-
encryptedKey
protected byte[] encryptedKey
The Encrypted key.
-
-
Method Detail
-
getRecipientIdentifier
public RecipientIdentifier getRecipientIdentifier()
Gets the value of the recipientIdentifier property.- Returns:
- possible object is
RecipientIdentifier
-
setRecipientIdentifier
public void setRecipientIdentifier(RecipientIdentifier value)
Sets the value of the recipientIdentifier property.- Parameters:
value- allowed object isRecipientIdentifier
-
getKeyEncryptionAlgorithm
public AlgorithmIdentifier getKeyEncryptionAlgorithm()
Gets the value of the keyEncryptionAlgorithm property.- Returns:
- possible object is
AlgorithmIdentifier
-
setKeyEncryptionAlgorithm
public void setKeyEncryptionAlgorithm(AlgorithmIdentifier value)
Sets the value of the keyEncryptionAlgorithm property.- Parameters:
value- allowed object isAlgorithmIdentifier
-
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
-
getEncryptedKey
public byte[] getEncryptedKey()
Gets the value of the encryptedKey property.- Returns:
- possible object is byte[]
-
setEncryptedKey
public void setEncryptedKey(byte[] value)
Sets the value of the encryptedKey property.- Parameters:
value- allowed object is byte[]
-
-