Class XAdESObjectParser

java.lang.Object
se.swedenconnect.sigval.xml.xmlstruct.XAdESObjectParser
All Implemented Interfaces:
XMLSigConstants

public class XAdESObjectParser extends Object implements XMLSigConstants
Parser for parsing XAdES object data
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • XAdESObjectParser

      public XAdESObjectParser(Element sigNode, SignatureData signatureData) throws org.apache.xml.security.exceptions.XMLSecurityException, jakarta.xml.bind.JAXBException
      Constructor
      Parameters:
      sigNode - The signature element node to parse for XAdES data
      signatureData - signature data collected for this signature
      Throws:
      org.apache.xml.security.exceptions.XMLSecurityException - on general errors
      jakarta.xml.bind.JAXBException - on XML parsing errors
  • Method Details

    • isXadesVerified

      public boolean isXadesVerified(X509Certificate signerCert)
      Indicates if this is a XAdES signature and the signed signature reference match the signature certificate
      Parameters:
      signerCert - the signer certificate of this signature
      Returns:
      true if this is a XAdES signature and the signed signature reference match the signature certificate