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