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 Summary

    Constructors
    Constructor
    Description
    The empty constructor
    DigestDTO(eu.europa.esig.dss.enumerations.DigestAlgorithm algorithm, byte[] value)
    The default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    eu.europa.esig.dss.enumerations.DigestAlgorithm
    Gets the DigestAlgorithm
    byte[]
    Gets the digest value
    int
     
    protected String
    Returns a hex-encoded digest value
    void
    setAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm algorithm)
    Sets the DigestAlgorithm
    void
    setValue(byte[] value)
    Sets the digest value
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DigestDTO

      public DigestDTO()
      The empty constructor
    • DigestDTO

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

    • getAlgorithm

      public eu.europa.esig.dss.enumerations.DigestAlgorithm getAlgorithm()
      Gets the DigestAlgorithm
      Returns:
      the algorithm
    • setAlgorithm

      public void setAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm algorithm)
      Sets the DigestAlgorithm
      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