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 SummaryConstructorsConstructorDescriptionEmpty constructor to instantiate message-digestDSSMessageDigest(DigestAlgorithm algorithm, byte[] value) Default constructor with provided digest algorithm and the corresponding hash valueDSSMessageDigest(Digest digest) Constructor with providedDigestobject
- 
Method SummaryModifier and TypeMethodDescriptionstatic DSSMessageDigestCreates empty message-digest objectbooleanisEmpty()Checks whether the object contains a valuetoString()Methods inherited from class eu.europa.esig.dss.model.Digestequals, getAlgorithm, getBase64Value, getHexValue, getValue, hashCode, setAlgorithm, setValue
- 
Constructor Details- 
DSSMessageDigestpublic DSSMessageDigest()Empty constructor to instantiate message-digest
- 
DSSMessageDigestDefault constructor with provided digest algorithm and the corresponding hash value- Parameters:
- algorithm-- DigestAlgorithmused algorithm
- value- byte array digest
 
- 
DSSMessageDigest
 
- 
- 
Method Details- 
createEmptyDigestCreates empty message-digest object- Returns:
- DSSMessageDigestwith empty values
 
- 
isEmptypublic boolean isEmpty()Checks whether the object contains a value- Returns:
- TRUE if the object is empty, FALSE otherwise
 
- 
toString
 
-