Class TimestampParameters

java.lang.Object
eu.europa.esig.dss.model.TimestampParameters
All Implemented Interfaces:
SerializableTimestampParameters, Serializable

public abstract class TimestampParameters extends Object implements SerializableTimestampParameters
This class represents the parameters provided when generating specific timestamps in a signature, such as an AllDataObjectsTimestamp or an IndividualDataObjectsTimestamp.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected eu.europa.esig.dss.enumerations.DigestAlgorithm
    The digest algorithm to provide to the timestamping authority
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Empty constructor
    protected
    TimestampParameters(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
    The default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    eu.europa.esig.dss.enumerations.DigestAlgorithm
    Returns a DigestAlgorithm to be used to hash a data to be timestamped
    int
     
    void
    setDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
    Sets DigestAlgorithm to use for timestamped data's digest computation
     

    Methods inherited from class java.lang.Object

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

    • digestAlgorithm

      protected eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm
      The digest algorithm to provide to the timestamping authority
  • Constructor Details

    • TimestampParameters

      protected TimestampParameters()
      Empty constructor
    • TimestampParameters

      protected TimestampParameters(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
      The default constructor
      Parameters:
      digestAlgorithm - DigestAlgorithm to use for data digest computation
  • Method Details

    • getDigestAlgorithm

      public eu.europa.esig.dss.enumerations.DigestAlgorithm getDigestAlgorithm()
      Description copied from interface: SerializableTimestampParameters
      Returns a DigestAlgorithm to be used to hash a data to be timestamped
      Specified by:
      getDigestAlgorithm in interface SerializableTimestampParameters
      Returns:
      DigestAlgorithm
    • setDigestAlgorithm

      public void setDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm)
      Sets DigestAlgorithm to use for timestamped data's digest computation
      Parameters:
      digestAlgorithm - DigestAlgorithm
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object