Class AbstractTransform

java.lang.Object
eu.europa.esig.dss.xades.reference.AbstractTransform
All Implemented Interfaces:
DSSTransform, Serializable
Direct Known Subclasses:
Base64Transform, ComplexTransform, EnvelopedSignatureTransform, SPDocDigestAsInSpecificationTransform

public abstract class AbstractTransform extends Object implements DSSTransform
The abstract implementation of a transform
See Also:
  • Field Details

    • algorithm

      protected final String algorithm
      The algorithm url string
    • namespace

      protected eu.europa.esig.dss.xml.common.definition.DSSNamespace namespace
      The namespace
  • Constructor Details

    • AbstractTransform

      protected AbstractTransform(String algorithm)
      Default constructor
      Parameters:
      algorithm - String algorithm url
    • AbstractTransform

      protected AbstractTransform(eu.europa.esig.dss.xml.common.definition.DSSNamespace xmlDSigNamespace, String algorithm)
      Constructor with namespace
      Parameters:
      xmlDSigNamespace - DSSNamespace
      algorithm - String
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Description copied from interface: DSSTransform
      Returns a particular transformation algorithm name
      Specified by:
      getAlgorithm in interface DSSTransform
      Returns:
      String algorithm name of transformation
    • setNamespace

      public void setNamespace(eu.europa.esig.dss.xml.common.definition.DSSNamespace namespace)
      Description copied from interface: DSSTransform
      Specifies a namespace for the transformation elements
      Specified by:
      setNamespace in interface DSSTransform
      Parameters:
      namespace - DSSNamespace uri
    • createTransform

      public Element createTransform(Document document, Element parentNode)
      Description copied from interface: DSSTransform
      Creates a Transform element DOM and appends it to the parentNode
      Specified by:
      createTransform in interface DSSTransform
      Parameters:
      document - Document to add transform for
      parentNode - Element to append transform to
      Returns:
      created transform Element
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object