Class TimestampsValidationBlock
java.lang.Object
eu.europa.esig.dss.validation.process.vpftsp.TimestampsValidationBlock
- Direct Known Subclasses:
EvidenceRecordTimestampsValidationBlock
This class is used to perform validation for all available timestamps,
as well as to extract POE information for valid entries
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Date
The validation timeprotected final ValidationPolicy
The validation policyprotected final List
<TimestampWrapper> List of time-stamps to be validated -
Constructor Summary
ModifierConstructorDescriptionprotected
TimestampsValidationBlock
(I18nProvider i18nProvider, List<TimestampWrapper> timestamps, DiagnosticData diagnosticData, ValidationPolicy policy, Date currentTime, Map<String, XmlBasicBuildingBlocks> bbbs, List<XmlTLAnalysis> tlAnalysis, ValidationLevel validationLevel) Constructor without POETimestampsValidationBlock
(I18nProvider i18nProvider, List<TimestampWrapper> timestamps, DiagnosticData diagnosticData, ValidationPolicy policy, Date currentTime, Map<String, XmlBasicBuildingBlocks> bbbs, Map<String, XmlEvidenceRecord> evidenceRecordValidations, List<XmlTLAnalysis> tlAnalysis, ValidationLevel validationLevel, POEExtraction poe) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionexecute()
This method performs validation of timestamps, but also fills thePOEExtraction
object for valid timestampsprotected POEExtraction
getPoe
(TimestampWrapper timestamp) Returns POE object fortimestamp
validationprotected List
<TimestampWrapper> Returns a list of time-stamp tokens to be validated
-
Field Details
-
timestamps
List of time-stamps to be validated -
policy
The validation policy -
currentTime
The validation time
-
-
Constructor Details
-
TimestampsValidationBlock
public TimestampsValidationBlock(I18nProvider i18nProvider, List<TimestampWrapper> timestamps, DiagnosticData diagnosticData, ValidationPolicy policy, Date currentTime, Map<String, XmlBasicBuildingBlocks> bbbs, Map<String, XmlEvidenceRecord> evidenceRecordValidations, List<XmlTLAnalysis> tlAnalysis, ValidationLevel validationLevel, POEExtraction poe) Default constructor- Parameters:
i18nProvider
-I18nProvider
timestamps
- a list ofTimestampWrapper
s to be validateddiagnosticData
-DiagnosticData
policy
-ValidationPolicy
currentTime
-Date
validation timebbbs
- map ofXmlBasicBuildingBlocks
to fill the validation resultevidenceRecordValidations
- a map ofXmlEvidenceRecord
tlAnalysis
- a list ofXmlTLAnalysis
validationLevel
-ValidationLevel
the target highest levelpoe
-POEExtraction
to be filled with POE from valid timestamps
-
TimestampsValidationBlock
protected TimestampsValidationBlock(I18nProvider i18nProvider, List<TimestampWrapper> timestamps, DiagnosticData diagnosticData, ValidationPolicy policy, Date currentTime, Map<String, XmlBasicBuildingBlocks> bbbs, List<XmlTLAnalysis> tlAnalysis, ValidationLevel validationLevel) Constructor without POE- Parameters:
i18nProvider
-I18nProvider
timestamps
- a list ofTimestampWrapper
s to be validateddiagnosticData
-DiagnosticData
policy
-ValidationPolicy
currentTime
-Date
validation timebbbs
- map ofXmlBasicBuildingBlocks
to fill the validation resulttlAnalysis
- a list ofXmlTLAnalysis
validationLevel
-ValidationLevel
the target highest level
-
-
Method Details
-
execute
This method performs validation of timestamps, but also fills thePOEExtraction
object for valid timestamps- Returns:
- a map of
XmlTimestamp
identifiers and their corresponding validations
-
getTimestamps
Returns a list of time-stamp tokens to be validated- Returns:
- a list of
TimestampWrapper
s
-
getPoe
Returns POE object fortimestamp
validation- Parameters:
timestamp
-TimestampWrapper
to be validated- Returns:
POEExtraction
-