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
ConstructorsConstructorDescriptionEmpty 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 timestampvoidsetBinaries(byte[] binaries) Sets DER-encoded binaries of the timestampvoidsetCanonicalizationMethod(String canonicalizationMethod) Sets the canonicalization method (for XAdES/JAdES)voidsetIncludes(List<TimestampIncludeDTO> includes) Sets covered references for a XAdES IndividualDataObjectsTimeStampvoidsetType(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-TimestampTypeof 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
-