Class TimestampDTO

java.lang.Object
eu.europa.esig.dss.ws.dto.TimestampDTO
All Implemented Interfaces:
Serializable

public class TimestampDTO extends Object implements Serializable
DTO to transfer a TimestampToken over REST/SOAP webServices
See Also:
  • Constructor Details

    • TimestampDTO

      public TimestampDTO()
      Empty constructor
    • TimestampDTO

      public TimestampDTO(byte[] binaries, TimestampType type)
      Default constructor
      Parameters:
      binaries - DER-encoded binaries of the timestamp
      type - TimestampType of the timestamp
  • Method Details

    • getBinaries

      public byte[] getBinaries()
      Gets DER-encoded binaries of the timestamp
      Returns:
      DER-encoded binaries
    • setBinaries

      public void setBinaries(byte[] binaries)
      Sets DER-encoded binaries of the timestamp
      Parameters:
      binaries - DER-encoded binaries
    • getCanonicalizationMethod

      public String getCanonicalizationMethod()
      Gets the canonicalization method (for XAdES/JAdES)
      Returns:
      String canonicalization method URI
    • setCanonicalizationMethod

      public void setCanonicalizationMethod(String canonicalizationMethod)
      Sets the canonicalization method (for XAdES/JAdES)
      Parameters:
      canonicalizationMethod - String canonicalization method URI
    • getType

      public TimestampType getType()
      Gets type of the timestamp
      Returns:
      TimestampType
    • setType

      public void setType(TimestampType type)
      Sets type of the timestamp
      Parameters:
      type - TimestampType
    • getIncludes

      public List<TimestampIncludeDTO> getIncludes()
      Gets covered references for a XAdES IndividualDataObjectsTimeStamp
      Returns:
      a list of TimestampIncludeDTO
    • setIncludes

      public void setIncludes(List<TimestampIncludeDTO> includes)
      Sets covered references for a XAdES IndividualDataObjectsTimeStamp
      Parameters:
      includes - a list of TimestampIncludeDTO