Class SignedData


  • public class SignedData
    extends Object
    Definition: Cryptographic Message Syntax (CMS) data structure containing signed data -- Reference: RFC 3852: Cryptographic Message Syntax (CMS) -- Usage: This data structure contains: the version of the data structure (which is v1 in EPAS protocol context) the identifiers of the messageType digest algorithms the encapsulated content the certificates for the verification of the signature

    Java class for SignedData complex type.

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

     <complexType name="SignedData">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="DigestAlgorithm" type="{}AlgorithmIdentifier" maxOccurs="unbounded"/>
             <element name="EncapsulatedContent" type="{}EncapsulatedContent"/>
             <element name="Certificate" type="{}Certificate" maxOccurs="unbounded" minOccurs="0"/>
             <element name="Signer" type="{}Signer" maxOccurs="unbounded"/>
           </sequence>
           <attribute name="Version" type="{}VersionType" default="v1" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • encapsulatedContent

        protected EncapsulatedContent encapsulatedContent
        The Encapsulated content.
      • certificate

        protected List<byte[]> certificate
        The Certificate.
      • signer

        protected List<Signer> signer
        The Signer.
    • Constructor Detail

      • SignedData

        public SignedData()
    • Method Detail

      • getDigestAlgorithm

        public List<AlgorithmIdentifier> getDigestAlgorithm()
        Gets the value of the digestAlgorithm 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 digestAlgorithm property.

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

            getDigestAlgorithm().add(newItem);
         

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

        Returns:
        the digest algorithm
      • setEncapsulatedContent

        public void setEncapsulatedContent​(EncapsulatedContent value)
        Sets the value of the encapsulatedContent property.
        Parameters:
        value - allowed object is EncapsulatedContent
      • getCertificate

        public List<byte[]> getCertificate()
        Gets the value of the certificate 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 certificate property.

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

            getCertificate().add(newItem);
         

        Objects of the following type(s) are allowed in the list byte[]

        Returns:
        the certificate
      • getSigner

        public List<Signer> getSigner()
        Gets the value of the signer 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 signer property.

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

            getSigner().add(newItem);
         

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

        Returns:
        the signer
      • 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