Class XAdESStructureValidator

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

public class XAdESStructureValidator extends Object
This class is used to validate a structure of a XAdES signature against a corresponding XSD
  • Constructor Details

    • XAdESStructureValidator

      protected XAdESStructureValidator(Element signatureElement, XAdESPath xadesPath)
      Default constructor
      Parameters:
      signatureElement - Element representing a ds:Signature
      xadesPath - XAdESPath defining the format of XAdES signature
  • 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

      public List<String> getValidationErrors()
      Returns validation errors WARN: The method #validate shall be executed before
      Returns:
      a list of String validation errors
    • getUtils

      protected XSDAbstractUtils getUtils(XAdESPath xadesPath)
      Gets a XAdES implementation of eu.europa.esig.dss.jaxb.common.XSDAbstractUtils corresponding to the given eu.europa.esig.dss.xades.definition.XAdESPath
      Parameters:
      xadesPath - XAdESPath
      Returns:
      XSDAbstractUtils