Class AuthenticatedData


  • public class AuthenticatedData
    extends Object
    Definition: Cryptographic Message Syntax (CMS) data structure containing MACed data with encryption key -- Reference: RFC 3852: Cryptographic Message Syntax (CMS) -- Usage: This data structure contains: the version of the data structure (which is v0 in EPAS protocol context) the protected encrytion key for every adressee (recipient) the encrypted data

    Java class for AuthenticatedData complex type.

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

     <complexType name="AuthenticatedData">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <choice maxOccurs="unbounded">
               <element name="KeyTransport" type="{}KeyTransport"/>
               <element name="KEK" type="{}KEK"/>
             </choice>
             <element name="MACAlgorithm" type="{}AlgorithmIdentifier"/>
             <element name="EncapsulatedContent" type="{}EncapsulatedContent"/>
           </sequence>
           <attribute name="Version" type="{}VersionType" default="v0" />
           <attribute name="MAC" use="required" type="{}MAC" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • keyTransportOrKEK

        protected List<Object> keyTransportOrKEK
        The Key transport or kek.
      • encapsulatedContent

        protected EncapsulatedContent encapsulatedContent
        The Encapsulated content.
      • mac

        protected byte[] mac
        The Mac.
    • Constructor Detail

      • AuthenticatedData

        public AuthenticatedData()
    • Method Detail

      • getKeyTransportOrKEK

        public List<Object> getKeyTransportOrKEK()
        Gets the value of the keyTransportOrKEK property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the keyTransportOrKEK property.

        For example, to add a new item, do as follows:

            getKeyTransportOrKEK().add(newItem);
         

        Objects of the following type(s) are allowed in the list KeyTransport KEK

        Returns:
        the key transport or kek
      • setEncapsulatedContent

        public void setEncapsulatedContent​(EncapsulatedContent value)
        Sets the value of the encapsulatedContent property.
        Parameters:
        value - allowed object is EncapsulatedContent
      • 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
      • getMAC

        public byte[] getMAC()
        Gets the value of the mac property.
        Returns:
        possible object is byte[]
      • setMAC

        public void setMAC​(byte[] value)
        Sets the value of the mac property.
        Parameters:
        value - allowed object is byte[]