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 boolean
equals(Object obj)
DigestAlgorithm
getAlgorithm()
String
getHexValue()
byte[]
getValue()
int
hashCode()
void
setAlgorithm(DigestAlgorithm algorithm)
void
setValue(byte[] value)
String
toString()
-
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
-