Package eu.europa.esig.dss.ws.dto
Class TimestampDTO
java.lang.Object
eu.europa.esig.dss.ws.dto.TimestampDTO
public class TimestampDTO extends Object
DTO to transfer a TimestampToken over REST/SOAP webServices
-
Constructor Summary
Constructors Constructor Description TimestampDTO()Empty constructorTimestampDTO(byte[] binaries, TimestampType type)Default constructor -
Method Summary
Modifier and Type Method Description byte[]getBinaries()Gets DER-encoded binaries of the timestampStringgetCanonicalizationMethod()Gets the canonicalization method (for XAdES/JAdES)List<TimestampIncludeDTO>getIncludes()Gets covered references for a XAdES IndividualDataObjectsTimeStampTimestampTypegetType()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
Gets the canonicalization method (for XAdES/JAdES)- Returns:
Stringcanonicalization method URI
-
setCanonicalizationMethod
Sets the canonicalization method (for XAdES/JAdES)- Parameters:
canonicalizationMethod-Stringcanonicalization method URI
-
getType
Gets type of the timestamp- Returns:
TimestampType
-
setType
Sets type of the timestamp- Parameters:
type-TimestampType
-
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
-