Class ManifestValidator

java.lang.Object
eu.europa.esig.dss.xades.validation.ManifestValidator

public class ManifestValidator extends Object
This class validates a ds:Manifest element against external files
 
 	<ds:Manifest Id="manifest">
 		<ds:Reference URI="l_19420170726bg.pdf">
 			<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/>
 			<ds:DigestValue>EUcwRQ....</ds:DigestValue>
 		</ds:Reference>
 		<ds:Reference URI="l_19420170726cs.pdf">
 			<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/>
 			<ds:DigestValue>NQNnr+F...</ds:DigestValue>
 		</ds:Reference>
 		...
 	</ds:Manifest>
 
 
  • Constructor Summary

    Constructors
    Constructor
    Description
    ManifestValidator(org.apache.xml.security.signature.Manifest manifest)
    The constructor with instantiated org.apache.xml.security.signature.Manifest
    ManifestValidator(org.apache.xml.security.signature.Manifest manifest, List<eu.europa.esig.dss.model.DSSDocument> detachedContents)
    The constructor with instantiated org.apache.xml.security.signature.Manifest and detached contents
    ManifestValidator(Element manifestElement, List<eu.europa.esig.dss.model.DSSDocument> detachedContents)
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    List<eu.europa.esig.dss.model.ReferenceValidation>
    Validates the manifest and returns a list of ReferenceValidations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ManifestValidator

      public ManifestValidator(Element manifestElement, List<eu.europa.esig.dss.model.DSSDocument> detachedContents)
      Default constructor
      Parameters:
      manifestElement - Element ds:Manifest element
      detachedContents - a list of detached manifested DSSDocuments
    • ManifestValidator

      public ManifestValidator(org.apache.xml.security.signature.Manifest manifest, List<eu.europa.esig.dss.model.DSSDocument> detachedContents)
      The constructor with instantiated org.apache.xml.security.signature.Manifest and detached contents
      Parameters:
      manifest - Manifest
      detachedContents - a list of detached DSSDocuments
    • ManifestValidator

      public ManifestValidator(org.apache.xml.security.signature.Manifest manifest)
      The constructor with instantiated org.apache.xml.security.signature.Manifest
      Parameters:
      manifest - Manifest
  • Method Details

    • validate

      public List<eu.europa.esig.dss.model.ReferenceValidation> validate()
      Validates the manifest and returns a list of ReferenceValidations
      Returns:
      a list of ReferenceValidations