Package eu.europa.esig.dss.model
Class Digest
java.lang.Object
eu.europa.esig.dss.model.Digest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DSSMessageDigest
Container for a Digest and his algorithm
- See Also:
-
Constructor Summary
ConstructorDescriptionDigest()
Empty constructorDigest
(DigestAlgorithm algorithm, byte[] value) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the DigestAlgorithmGets the base64-encoded digest value StringGets the HEX (base16) encoded digest value Stringbyte[]
getValue()
Gets the digest valueint
hashCode()
void
setAlgorithm
(DigestAlgorithm algorithm) Sets the DigestAlgorithmvoid
setValue
(byte[] value) Sets the digest valuetoString()
-
Constructor Details
-
Digest
public Digest()Empty constructor -
Digest
Default constructor- Parameters:
algorithm
-DigestAlgorithm
used algorithmvalue
- byte array digest
-
-
Method Details
-
getAlgorithm
-
setAlgorithm
Sets the DigestAlgorithm- Parameters:
algorithm
- the algorithm to set
-
getValue
public byte[] getValue()Gets the digest value- Returns:
- the value
-
setValue
public void setValue(byte[] value) Sets the digest value- Parameters:
value
- the value to set
-
getHexValue
-
getBase64Value
-
hashCode
-
equals
-
toString
-