Package eu.europa.esig.dss.model
Class Digest
java.lang.Object
eu.europa.esig.dss.model.Digest
- All Implemented Interfaces:
Serializable
public final class Digest extends Object implements Serializable
Container for a Digest and his algorithm
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description Digest()Digest(DigestAlgorithm algorithm, byte[] value) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)DigestAlgorithmgetAlgorithm()StringgetHexValue()byte[]getValue()inthashCode()voidsetAlgorithm(DigestAlgorithm algorithm)voidsetValue(byte[] value)StringtoString()
-
Constructor Details
-
Method Details
-
getHexValue
-
getAlgorithm
- Returns:
- the algorithm
-
setAlgorithm
- Parameters:
algorithm- the algorithm to set
-
getValue
public byte[] getValue()- Returns:
- the value
-
setValue
public void setValue(byte[] value)- Parameters:
value- the value to set
-
hashCode
public int hashCode() -
equals
-
toString
-