Package eu.europa.esig.dss.model
Class DSSMessageDigest
java.lang.Object
eu.europa.esig.dss.model.Digest
eu.europa.esig.dss.model.DSSMessageDigest
- All Implemented Interfaces:
Serializable
This class contains a digest algorithm and a digest value for message-digest computation.
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructor to instantiate message-digestDSSMessageDigest
(DigestAlgorithm algorithm, byte[] value) Default constructor with provided digest algorithm and the corresponding hash valueDSSMessageDigest
(Digest digest) Constructor with providedDigest
object -
Method Summary
Modifier and TypeMethodDescriptionstatic DSSMessageDigest
Creates empty message-digest objectboolean
isEmpty()
Checks whether the object contains a valuetoString()
Methods inherited from class eu.europa.esig.dss.model.Digest
equals, getAlgorithm, getHexValue, getValue, hashCode, setAlgorithm, setValue
-
Constructor Details
-
DSSMessageDigest
public DSSMessageDigest()Empty constructor to instantiate message-digest -
DSSMessageDigest
Default constructor with provided digest algorithm and the corresponding hash value- Parameters:
algorithm
-DigestAlgorithm
used algorithmvalue
- byte array digest
-
DSSMessageDigest
Constructor with providedDigest
object- Parameters:
digest
-Digest
-
-
Method Details
-
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
-