Package eu.europa.esig.dss.ws.dto
Class DigestDTO
java.lang.Object
eu.europa.esig.dss.ws.dto.DigestDTO
- All Implemented Interfaces:
Serializable
public class DigestDTO extends Object implements Serializable
Represent the Digest DTO
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DigestDTO()
The empty constructorDigestDTO(DigestAlgorithm algorithm, byte[] value)
The default constructor -
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
DigestAlgorithm
getAlgorithm()
Gets theDigestAlgorithm
byte[]
getValue()
Gets the digest valueint
hashCode()
protected String
hexValue()
Returns a hex-encoded digest valuevoid
setAlgorithm(DigestAlgorithm algorithm)
Sets theDigestAlgorithm
void
setValue(byte[] value)
Sets the digest valueString
toString()
-
Constructor Details
-
DigestDTO
public DigestDTO()The empty constructor -
DigestDTO
The default constructor- Parameters:
algorithm
-DigestAlgorithm
used for the digest calculationvalue
- of the digest
-
-
Method Details
-
getAlgorithm
Gets theDigestAlgorithm
- Returns:
- the algorithm
-
setAlgorithm
Sets theDigestAlgorithm
- Parameters:
algorithm
-DigestAlgorithm
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
-
hexValue
Returns a hex-encoded digest value- Returns:
String
hex-encoded
-
hashCode
public int hashCode() -
equals
-
toString
-