Class EncryptedContent


  • public class EncryptedContent
    extends Object
    Definition: Cryptographic Message Syntax (CMS) data structure containing encrypted data with encryption key -- Reference: RFC 3852: Cryptographic Message Syntax (CMS) -- Usage: This data structure contains: the type of the encrypted content, which is id-data for an application data or another CMS data structure the protected encryption key for every recipient the encrypted data

    Java class for EncryptedContent complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="EncryptedContent">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="ContentEncryptionAlgorithm" type="{}AlgorithmIdentifier"/>
             <element name="EncryptedData" type="{}EncryptedData"/>
           </sequence>
           <attribute name="Content" use="required" type="{}ContentType" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • contentEncryptionAlgorithm

        protected AlgorithmIdentifier contentEncryptionAlgorithm
        The Content encryption algorithm.
      • encryptedData

        protected byte[] encryptedData
        The Encrypted data.
      • contentType

        protected ContentType contentType
        The Content.
    • Constructor Detail

      • EncryptedContent

        public EncryptedContent()
    • Method Detail

      • getContentEncryptionAlgorithm

        public AlgorithmIdentifier getContentEncryptionAlgorithm()
        Gets the value of the contentEncryptionAlgorithm property.
        Returns:
        possible object is AlgorithmIdentifier
      • setContentEncryptionAlgorithm

        public void setContentEncryptionAlgorithm​(AlgorithmIdentifier value)
        Sets the value of the contentEncryptionAlgorithm property.
        Parameters:
        value - allowed object is AlgorithmIdentifier
      • getEncryptedData

        public byte[] getEncryptedData()
        Gets the value of the encryptedData property.
        Returns:
        possible object is byte[]
      • setEncryptedData

        public void setEncryptedData​(byte[] value)
        Sets the value of the encryptedData property.
        Parameters:
        value - allowed object is byte[]
      • getContentType

        public ContentType getContentType()
        Gets the value of the contentType property.
        Returns:
        possible object is ContentType
      • setContentType

        public void setContentType​(ContentType value)
        Sets the value of the contentType property.
        Parameters:
        value - allowed object is ContentType