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
public abstract class TimestampParameters extends Object implements SerializableTimestampParameters
This class represents the parameters provided when generating specific timestamps in a signature, such as an
AllDataObjectsTimestamp or an
IndividualDataObjectsTimestamp.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected DigestAlgorithmdigestAlgorithmThe digest algorithm to provide to the timestamping authority -
Constructor Summary
Constructors Modifier Constructor Description protectedTimestampParameters()Empty constructorprotectedTimestampParameters(DigestAlgorithm digestAlgorithm)The default constructor -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)DigestAlgorithmgetDigestAlgorithm()Returns a DigestAlgorithm to be used to hash a data to be timestampedinthashCode()voidsetDigestAlgorithm(DigestAlgorithm digestAlgorithm)Sets DigestAlgorithm to use for timestamped data's digest computationStringtoString()
-
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-DigestAlgorithmto use for data digest computation
-
-
Method Details
-
getDigestAlgorithm
Description copied from interface:SerializableTimestampParametersReturns a DigestAlgorithm to be used to hash a data to be timestamped- Specified by:
getDigestAlgorithmin interfaceSerializableTimestampParameters- Returns:
DigestAlgorithm
-
setDigestAlgorithm
Sets DigestAlgorithm to use for timestamped data's digest computation- Parameters:
digestAlgorithm-DigestAlgorithm
-
hashCode
public int hashCode() -
equals
-
toString
-