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 Detail
-
Digest
public Digest()
-
Digest
public Digest(DigestAlgorithm algorithm, byte[] value)
-
-
Method Detail
-
getHexValue
public String getHexValue()
-
getAlgorithm
public DigestAlgorithm getAlgorithm()
- Returns:
- the algorithm
-
setAlgorithm
public void setAlgorithm(DigestAlgorithm algorithm)
- 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
-
-