Class ManifestValidator
java.lang.Object
eu.europa.esig.dss.xades.validation.ManifestValidator
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
ConstructorsConstructorDescriptionManifestValidator(org.apache.xml.security.signature.Manifest manifest) The constructor with instantiatedorg.apache.xml.security.signature.ManifestManifestValidator(org.apache.xml.security.signature.Manifest manifest, List<DSSDocument> detachedContents) The constructor with instantiatedorg.apache.xml.security.signature.Manifestand detached contentsManifestValidator(Element manifestElement, List<DSSDocument> detachedContents) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvalidate()Validates the manifest and returns a list ofReferenceValidations
-
Constructor Details
-
ManifestValidator
Default constructor- Parameters:
manifestElement-Elementds:Manifest elementdetachedContents- a list of detached manifestedDSSDocuments
-
ManifestValidator
public ManifestValidator(org.apache.xml.security.signature.Manifest manifest, List<DSSDocument> detachedContents) The constructor with instantiatedorg.apache.xml.security.signature.Manifestand detached contents- Parameters:
manifest-ManifestdetachedContents- a list of detachedDSSDocuments
-
ManifestValidator
public ManifestValidator(org.apache.xml.security.signature.Manifest manifest) The constructor with instantiatedorg.apache.xml.security.signature.Manifest- Parameters:
manifest-Manifest
-
-
Method Details
-
validate
Validates the manifest and returns a list ofReferenceValidations- Returns:
- a list of
ReferenceValidations
-