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:
  • Constructor Details

    • DigestDTO

      public DigestDTO()
      The empty constructor
    • DigestDTO

      public DigestDTO(DigestAlgorithm algorithm, byte[] value)
      The default constructor
      Parameters:
      algorithm - DigestAlgorithm used for the digest calculation
      value - of the digest
  • Method Details

    • getAlgorithm

      public DigestAlgorithm getAlgorithm()
      Returns:
      the algorithm
    • setAlgorithm

      public void setAlgorithm(DigestAlgorithm algorithm)
      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

      protected String hexValue()
      Returns a hex-encoded digest value
      Returns:
      String hex-encoded
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object