Class XAdESStructureValidator
java.lang.Object
eu.europa.esig.dss.xades.validation.XAdESStructureValidator
This class is used to validate a structure of a XAdES signature against a corresponding XSD
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXAdESStructureValidator(Element signatureElement, XAdESPath xadesPath) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected XSDAbstractUtilsGets a XAdES implementation ofeu.europa.esig.dss.jaxb.common.XSDAbstractUtilscorresponding to the giveneu.europa.esig.dss.xades.definition.XAdESPathReturns validation errors WARN: The method#validateshall be executed beforebooleanvalidate()Validates the signature against corresponding XSD and returns whether the signature has a valid XML structure
-
Constructor Details
-
Method Details
-
validate
public boolean validate()Validates the signature against corresponding XSD and returns whether the signature has a valid XML structure- Returns:
- TRUE if the signature XML element passes the validation, FALSE otherwise
-
getValidationErrors
Returns validation errors WARN: The method#validateshall be executed before- Returns:
- a list of
Stringvalidation errors
-
getUtils
Gets a XAdES implementation ofeu.europa.esig.dss.jaxb.common.XSDAbstractUtilscorresponding to the giveneu.europa.esig.dss.xades.definition.XAdESPath- Parameters:
xadesPath-XAdESPath- Returns:
XSDAbstractUtils
-