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
ConstructorsConstructorDescriptionDigest()Empty constructorDigest(DigestAlgorithm algorithm, byte[] value) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the DigestAlgorithmGets the base64-encoded digest value StringGets the HEX (base16) encoded digest value Stringbyte[]getValue()Gets the digest valueinthashCode()voidsetAlgorithm(DigestAlgorithm algorithm) Sets the DigestAlgorithmvoidsetValue(byte[] value) Sets the digest valuetoString()
-
Constructor Details
-
Digest
public Digest()Empty constructor -
Digest
Default constructor- Parameters:
algorithm-DigestAlgorithmused 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
-