Class DSSMessageDigest

java.lang.Object
eu.europa.esig.dss.model.Digest
eu.europa.esig.dss.model.DSSMessageDigest
All Implemented Interfaces:
Serializable

public class DSSMessageDigest extends Digest
This class contains a digest algorithm and a digest value for message-digest computation.
See Also:
  • Constructor Details

    • DSSMessageDigest

      public DSSMessageDigest()
      Empty constructor to instantiate message-digest
    • DSSMessageDigest

      public DSSMessageDigest(DigestAlgorithm algorithm, byte[] value)
      Default constructor with provided digest algorithm and the corresponding hash value
      Parameters:
      algorithm - DigestAlgorithm used algorithm
      value - byte array digest
    • DSSMessageDigest

      public DSSMessageDigest(Digest digest)
      Constructor with provided Digest object
      Parameters:
      digest - Digest
  • Method Details

    • createEmptyDigest

      public static DSSMessageDigest createEmptyDigest()
      Creates empty message-digest object
      Returns:
      DSSMessageDigest with empty values
    • isEmpty

      public boolean isEmpty()
      Checks whether the object contains a value
      Returns:
      TRUE if the object is empty, FALSE otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Digest