Package eu.europa.esig.dss.model
Class TimestampParameters
java.lang.Object
eu.europa.esig.dss.model.TimestampParameters
- All Implemented Interfaces:
SerializableTimestampParameters
,Serializable
- Direct Known Subclasses:
CAdESTimestampParameters
,JAdESTimestampParameters
,XAdESTimestampParameters
This class represents the parameters provided when generating specific timestamps in a signature, such as an
AllDataObjectsTimestamp or an
IndividualDataObjectsTimestamp.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected DigestAlgorithm
The digest algorithm to provide to the timestamping authority -
Constructor Summary
ModifierConstructorDescriptionprotected
Empty constructorprotected
TimestampParameters
(DigestAlgorithm digestAlgorithm) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns a DigestAlgorithm to be used to hash a data to be timestampedint
hashCode()
void
setDigestAlgorithm
(DigestAlgorithm digestAlgorithm) Sets DigestAlgorithm to use for timestamped data's digest computationtoString()
-
Field Details
-
digestAlgorithm
The digest algorithm to provide to the timestamping authority
-
-
Constructor Details
-
TimestampParameters
protected TimestampParameters()Empty constructor -
TimestampParameters
The default constructor- Parameters:
digestAlgorithm
-DigestAlgorithm
to use for data digest computation
-
-
Method Details
-
getDigestAlgorithm
Description copied from interface:SerializableTimestampParameters
Returns a DigestAlgorithm to be used to hash a data to be timestamped- Specified by:
getDigestAlgorithm
in interfaceSerializableTimestampParameters
- Returns:
DigestAlgorithm
-
setDigestAlgorithm
Sets DigestAlgorithm to use for timestamped data's digest computation- Parameters:
digestAlgorithm
-DigestAlgorithm
-
hashCode
public int hashCode() -
equals
-
toString
-