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 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 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()
      Description copied from class: Policy
      Checks if the object's data is not filled
      Overrides:
      isEmpty in class Policy
      Returns:
      TRUE if the Policy object does not have filled data, FALSE otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Policy
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Policy
    • toString

      public String toString()
      Overrides:
      toString in class Policy