Class XMLSignaturePolicyValidator

java.lang.Object
eu.europa.esig.dss.xades.validation.policy.XMLSignaturePolicyValidator

public class XMLSignaturePolicyValidator extends Object
Validates an XML Signature Policy
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected static final String
    The error key to be used for XML processing related issues
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canValidate(eu.europa.esig.dss.model.signature.SignaturePolicy signaturePolicy)
     
    eu.europa.esig.dss.model.Digest
    getComputedDigest(eu.europa.esig.dss.model.DSSDocument arg0, eu.europa.esig.dss.enumerations.DigestAlgorithm arg1)
     
    eu.europa.esig.dss.model.Digest
    getDigestAfterTransforms(eu.europa.esig.dss.model.DSSDocument policyDocument, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, Element transformsElement)
    Computes Digests after processing of given transformsElement
    eu.europa.esig.dss.model.signature.SignaturePolicyValidationResult
    validate(eu.europa.esig.dss.model.signature.SignaturePolicy signaturePolicy)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • XMLSignaturePolicyValidator

      public XMLSignaturePolicyValidator()
      Default constructor
  • Method Details

    • canValidate

      public boolean canValidate(eu.europa.esig.dss.model.signature.SignaturePolicy signaturePolicy)
    • validate

      public eu.europa.esig.dss.model.signature.SignaturePolicyValidationResult validate(eu.europa.esig.dss.model.signature.SignaturePolicy signaturePolicy)
    • getDigestAfterTransforms

      public eu.europa.esig.dss.model.Digest getDigestAfterTransforms(eu.europa.esig.dss.model.DSSDocument policyDocument, eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm, Element transformsElement) throws org.apache.xml.security.exceptions.XMLSecurityException, IOException
      Computes Digests after processing of given transformsElement
      Parameters:
      policyDocument - DSSDocument policy content
      digestAlgorithm - DigestAlgorithm to use to calculate digest
      transformsElement - Element ds:Transforms element
      Returns:
      Digest computed on octets obtained after performing of transforms
      Throws:
      org.apache.xml.security.exceptions.XMLSecurityException - if an exception occurs during transforms processing
      IOException - if an exception occurs during transforms processing result reading
    • getComputedDigest

      public eu.europa.esig.dss.model.Digest getComputedDigest(eu.europa.esig.dss.model.DSSDocument arg0, eu.europa.esig.dss.enumerations.DigestAlgorithm arg1)