All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adyen.model.nexo.KEK Maven / Gradle / Ivy

There is a newer version: 28.4.0
Show newest version
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;


/**
 * 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 key
 *
 * 

Java 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>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "KEK", propOrder = { "kekIdentifier", "keyEncryptionAlgorithm" }) public class KEK { /** * The Kek identifier. */ @XmlElement(name = "KEKIdentifier", required = true) protected KEKIdentifier kekIdentifier; /** * The Key encryption algorithm. */ @XmlElement(name = "KeyEncryptionAlgorithm", required = true) protected AlgorithmIdentifier keyEncryptionAlgorithm; /** * The Version. */ @XmlElement(name = "Version") protected VersionType version; /** * The Encrypted key. */ @XmlElement(name = "EncryptedKey", required = true) protected byte[] encryptedKey; /** * Gets the value of the kekIdentifier property. * * @return possible object is {@link KEKIdentifier } */ public KEKIdentifier getKEKIdentifier() { return kekIdentifier; } /** * Sets the value of the kekIdentifier property. * * @param value allowed object is {@link KEKIdentifier } */ public void setKEKIdentifier(KEKIdentifier value) { this.kekIdentifier = value; } /** * Gets the value of the keyEncryptionAlgorithm property. * * @return possible object is {@link AlgorithmIdentifier } */ public AlgorithmIdentifier getKeyEncryptionAlgorithm() { return keyEncryptionAlgorithm; } /** * Sets the value of the keyEncryptionAlgorithm property. * * @param value allowed object is {@link AlgorithmIdentifier } */ public void setKeyEncryptionAlgorithm(AlgorithmIdentifier value) { this.keyEncryptionAlgorithm = value; } /** * Gets the value of the version property. * * @return possible object is {@link VersionType } */ public VersionType getVersion() { if (version == null) { return VersionType.V_4; } 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; } /** * Gets the value of the encryptedKey property. * * @return possible object is byte[] */ public byte[] getEncryptedKey() { return encryptedKey; } /** * Sets the value of the encryptedKey property. * * @param value allowed object is byte[] */ public void setEncryptedKey(byte[] value) { this.encryptedKey = value; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy