Class XmlPolicyWithTransforms

java.lang.Object
eu.europa.esig.dss.model.Policy
eu.europa.esig.dss.xades.signature.XmlPolicyWithTransforms
All Implemented Interfaces:
Serializable

public class XmlPolicyWithTransforms extends eu.europa.esig.dss.model.Policy
This class represents an extension of Policy class allowing addition of a custom list of DSSTransforms to build the ds:Transforms element NOTE: The digest should be computed by the user and set through the setDigestValue(digestValue) method Use DSSXMLUtils.applyTransforms(document, transforms) in order obtain policy binaries after transforms
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Gets the list of Transforms to incorporate into the signature
    int
     
    boolean
     
    void
    Sets the list of Transforms to incorporate into the signature
     

    Methods inherited from class eu.europa.esig.dss.model.Policy

    getDescription, getDigestAlgorithm, getDigestValue, getDocumentationReferences, getId, getQualifier, getSpDocSpecification, getSpuri, getUserNotice, isHashAsInTechnicalSpecification, isSPQualifierPresent, setDescription, setDigestAlgorithm, setDigestValue, setDocumentationReferences, setHashAsInTechnicalSpecification, setId, setQualifier, setSpDocSpecification, setSpuri, setUserNotice

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • XmlPolicyWithTransforms

      public XmlPolicyWithTransforms()
      Default constructor
  • Method Details

    • getTransforms

      public List<DSSTransform> getTransforms()
      Gets the list of Transforms to incorporate into the signature
      Returns:
      a list of DSSTransforms
    • setTransforms

      public void setTransforms(List<DSSTransform> transforms)
      Sets the list of Transforms to incorporate into the signature
      Parameters:
      transforms - a list of DSSTransforms
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class eu.europa.esig.dss.model.Policy
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class eu.europa.esig.dss.model.Policy
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class eu.europa.esig.dss.model.Policy
    • toString

      public String toString()
      Overrides:
      toString in class eu.europa.esig.dss.model.Policy