Class XmlPolicyWithTransforms

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

public class XmlPolicyWithTransforms extends Object
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()
    • hashCode

      public int hashCode()
    • equals

      public boolean equals(Object obj)
    • toString

      public String toString()
    • getId

      public String getId()
    • setId

      public void setId(String arg0)
    • getQualifier

      public eu.europa.esig.dss.enumerations.ObjectIdentifierQualifier getQualifier()
    • setQualifier

      public void setQualifier(eu.europa.esig.dss.enumerations.ObjectIdentifierQualifier arg0)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String arg0)
    • getDocumentationReferences

      public String[] getDocumentationReferences()
    • setDocumentationReferences

      public void setDocumentationReferences(String... arg0)
    • getDigestAlgorithm

      public eu.europa.esig.dss.enumerations.DigestAlgorithm getDigestAlgorithm()
    • setDigestAlgorithm

      public void setDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm arg0)
    • getDigestValue

      public byte[] getDigestValue()
    • setDigestValue

      public void setDigestValue(byte[] arg0)
    • getSpuri

      public String getSpuri()
    • setSpuri

      public void setSpuri(String arg0)
    • getUserNotice

      public eu.europa.esig.dss.model.UserNotice getUserNotice()
    • setUserNotice

      public void setUserNotice(eu.europa.esig.dss.model.UserNotice arg0)
    • getSpDocSpecification

      public eu.europa.esig.dss.model.SpDocSpecification getSpDocSpecification()
    • setSpDocSpecification

      public void setSpDocSpecification(eu.europa.esig.dss.model.SpDocSpecification arg0)
    • isHashAsInTechnicalSpecification

      public boolean isHashAsInTechnicalSpecification()
    • setHashAsInTechnicalSpecification

      public void setHashAsInTechnicalSpecification(boolean arg0)
    • isSPQualifierPresent

      public boolean isSPQualifierPresent()