Class DSSReference

java.lang.Object
eu.europa.esig.dss.xades.reference.DSSReference

public class DSSReference
extends Object
Defines a ds:Reference element to be built
  • Constructor Details

    • DSSReference

      public DSSReference()
      The default constructor
  • Method Details

    • getId

      public String getId()
      Gets Id attribute of the reference
      Returns:
      String
    • setId

      public void setId​(String id)
      Sets Id attribute of the reference
      Parameters:
      id - String
    • getUri

      public String getUri()
      Gets URI attribute of the reference
      Returns:
      String
    • setUri

      public void setUri​(String uri)
      Sets URI attribute of the reference
      Parameters:
      uri - String
    • getType

      public String getType()
      Gets Type attribute of the reference
      Returns:
      String
    • setType

      public void setType​(String type)
      Sets Type attribute of the reference
      Parameters:
      type - String
    • getDigestMethodAlgorithm

      public DigestAlgorithm getDigestMethodAlgorithm()
      Gets DigestAlgorithm to use for digest value computation
      Returns:
      DigestAlgorithm
    • setDigestMethodAlgorithm

      public void setDigestMethodAlgorithm​(DigestAlgorithm digestMethod)
      Sets DigestAlgorithm to use for digest value computation
      Parameters:
      digestMethod - DigestAlgorithm
    • getTransforms

      public List<DSSTransform> getTransforms()
      Gets a list of transforms to perform
      Returns:
      a list of DSSTransforms
    • setTransforms

      public void setTransforms​(List<DSSTransform> transforms)
      Sets a list of transforms to perform
      Parameters:
      transforms - a list of DSSTransforms
    • getContents

      public DSSDocument getContents()
      Gets the original referenced document content
      Returns:
      DSSDocument
    • setContents

      public void setContents​(DSSDocument contents)
      Sets the original referenced document content
      Parameters:
      contents - DSSDocument
    • toString

      public String toString()
      Overrides:
      toString in class Object