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
ConstructorDescriptionManifestValidator
(org.apache.xml.security.signature.Manifest manifest) The constructor with instantiatedorg.apache.xml.security.signature.Manifest
ManifestValidator
(org.apache.xml.security.signature.Manifest manifest, List<DSSDocument> detachedContents) The constructor with instantiatedorg.apache.xml.security.signature.Manifest
and detached contentsManifestValidator
(Element manifestElement, List<DSSDocument> detachedContents) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvalidate()
Validates the manifest and returns a list ofReferenceValidation
s
-
Constructor Details
-
ManifestValidator
Default constructor- Parameters:
manifestElement
-Element
ds:Manifest elementdetachedContents
- a list of detached manifestedDSSDocument
s
-
ManifestValidator
public ManifestValidator(org.apache.xml.security.signature.Manifest manifest, List<DSSDocument> detachedContents) The constructor with instantiatedorg.apache.xml.security.signature.Manifest
and detached contents- Parameters:
manifest
-Manifest
detachedContents
- a list of detachedDSSDocument
s
-
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 ofReferenceValidation
s- Returns:
- a list of
ReferenceValidation
s
-