Class AbstractSignedAndTimestampedFilesCoveredCheck<T extends XmlConstraintsConclusion>
java.lang.Object
eu.europa.esig.dss.validation.process.ChainItem<T>
eu.europa.esig.dss.validation.process.bbb.fc.checks.AbstractSignedAndTimestampedFilesCoveredCheck<T>
- Type Parameters:
T
-XmlConstraintsConclusion
- Direct Known Subclasses:
EvidenceRecordSignedAndTimestampedFilesCoveredCheck
,SignedAndTimestampedFilesCoveredCheck
public abstract class AbstractSignedAndTimestampedFilesCoveredCheck<T extends XmlConstraintsConclusion>
extends ChainItem<T>
This class checks whether all files signed by the covered signatures or timestamped by covered timestamps
are covered by the current timestamp as well
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DiagnosticData
Diagnostic dataprotected final String
Filename of the timestamp file to be verifiedFields inherited from class eu.europa.esig.dss.validation.process.ChainItem
i18nProvider
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractSignedAndTimestampedFilesCoveredCheck
(I18nProvider i18nProvider, T result, DiagnosticData diagnosticData, String timestampFilename, LevelRule constraint) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkManifestFilesCoveredRecursively
(List<String> coveredEntries, XmlManifestFile manifestFile) This method verifies whether all entries in amanifestFile
are covered bycoveredEntries
recursivelyprotected MessageTag
Returns an i18n key String of an error message to getprotected Indication
Gets an Indication in case of failureprotected SubIndication
Gets a SubIndication in case of failureprotected MessageTag
Returns an i18n key String of a message to getprotected boolean
process()
Performs the checkMethods inherited from class eu.europa.esig.dss.validation.process.ChainItem
buildAdditionalInfo, buildConstraintMessage, buildErrorMessage, buildXmlMessage, execute, getAdditionalInfo, getBlockType, getLevel, getPreviousErrors, getSuccessIndication, getSuccessSubIndication, isIndeterminateConclusion, isInvalidConclusion, isValid, isValidConclusion, setNextItem
-
Field Details
-
diagnosticData
Diagnostic data -
timestampFilename
Filename of the timestamp file to be verified
-
-
Constructor Details
-
AbstractSignedAndTimestampedFilesCoveredCheck
protected AbstractSignedAndTimestampedFilesCoveredCheck(I18nProvider i18nProvider, T result, DiagnosticData diagnosticData, String timestampFilename, LevelRule constraint) Default constructor- Parameters:
i18nProvider
-I18nProvider
result
-XmlConstraintsConclusion
diagnosticData
-DiagnosticData
timestampFilename
-String
constraint
-LevelRule
-
-
Method Details
-
process
protected boolean process()Description copied from class:ChainItem
Performs the check- Specified by:
process
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
- TRUE if the check succeeds, FALSE otherwise
-
checkManifestFilesCoveredRecursively
protected boolean checkManifestFilesCoveredRecursively(List<String> coveredEntries, XmlManifestFile manifestFile) This method verifies whether all entries in amanifestFile
are covered bycoveredEntries
recursively- Parameters:
coveredEntries
- a list ofString
entries covered by a timestamp or a manifestmanifestFile
-XmlManifestFile
to verify against- Returns:
- TRUE if all manifest entries are covered recursively, FALSE otherwise
-
getMessageTag
Description copied from class:ChainItem
Returns an i18n key String of a message to get- Overrides:
getMessageTag
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
MessageTag
key
-
getErrorMessageTag
Description copied from class:ChainItem
Returns an i18n key String of an error message to get- Overrides:
getErrorMessageTag
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
MessageTag
key
-
getFailedIndicationForConclusion
Description copied from class:ChainItem
Gets an Indication in case of failure- Specified by:
getFailedIndicationForConclusion
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
Indication
-
getFailedSubIndicationForConclusion
Description copied from class:ChainItem
Gets a SubIndication in case of failure- Specified by:
getFailedSubIndicationForConclusion
in classChainItem<T extends XmlConstraintsConclusion>
- Returns:
SubIndication
-