Class 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 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>
     
    • Field Detail

      • kekIdentifier

        protected KEKIdentifier kekIdentifier
        The Kek identifier.
      • keyEncryptionAlgorithm

        protected AlgorithmIdentifier keyEncryptionAlgorithm
        The Key encryption algorithm.
      • encryptedKey

        protected byte[] encryptedKey
        The Encrypted key.
    • Constructor Detail

      • KEK

        public KEK()
    • 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 is KEKIdentifier
      • setKeyEncryptionAlgorithm

        public void setKeyEncryptionAlgorithm​(AlgorithmIdentifier value)
        Sets the value of the keyEncryptionAlgorithm property.
        Parameters:
        value - allowed object is AlgorithmIdentifier
      • 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 is VersionType
      • 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[]