Package eu.europa.esig.dss.ws.dto
Class TimestampDTO
java.lang.Object
eu.europa.esig.dss.ws.dto.TimestampDTO
- All Implemented Interfaces:
Serializable
DTO to transfer a TimestampToken over REST/SOAP webServices
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructorTimestampDTO
(byte[] binaries, TimestampType type) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets DER-encoded binaries of the timestampGets the canonicalization method (for XAdES/JAdES)Gets covered references for a XAdES IndividualDataObjectsTimeStampgetType()
Gets type of the timestampvoid
setBinaries
(byte[] binaries) Sets DER-encoded binaries of the timestampvoid
setCanonicalizationMethod
(String canonicalizationMethod) Sets the canonicalization method (for XAdES/JAdES)void
setIncludes
(List<TimestampIncludeDTO> includes) Sets covered references for a XAdES IndividualDataObjectsTimeStampvoid
setType
(TimestampType type) Sets type of the timestamp
-
Constructor Details
-
TimestampDTO
public TimestampDTO()Empty constructor -
TimestampDTO
Default constructor- Parameters:
binaries
- DER-encoded binaries of the timestamptype
-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
-
setCanonicalizationMethod
-
getType
-
setType
-
getIncludes
Gets covered references for a XAdES IndividualDataObjectsTimeStamp- Returns:
- a list of
TimestampIncludeDTO
-
setIncludes
Sets covered references for a XAdES IndividualDataObjectsTimeStamp- Parameters:
includes
- a list ofTimestampIncludeDTO
-