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 timestampString
getCanonicalizationMethod()
Gets the canonicalization method (for XAdES/JAdES)List<TimestampIncludeDTO>
getIncludes()
Gets covered references for a XAdES IndividualDataObjectsTimeStampTimestampType
getType()
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
Gets the canonicalization method (for XAdES/JAdES)- Returns:
String
canonicalization method URI
-
setCanonicalizationMethod
Sets the canonicalization method (for XAdES/JAdES)- Parameters:
canonicalizationMethod
-String
canonicalization 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
-