Class AbstractSignedAndTimestampedFilesCoveredCheck<T extends eu.europa.esig.dss.detailedreport.jaxb.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 eu.europa.esig.dss.detailedreport.jaxb.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 eu.europa.esig.dss.diagnostic.DiagnosticDataDiagnostic dataprotected final StringFilename of the timestamp file to be verifiedFields inherited from class ChainItem
i18nProvider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSignedAndTimestampedFilesCoveredCheck(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T result, eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData, String timestampFilename, eu.europa.esig.dss.model.policy.LevelRule constraint) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckManifestFilesCovered(List<String> entries) This method is used to run the validation process for the manifest entries coverageprotected booleancheckManifestFilesCoveredRecursively(List<String> coveredEntries, List<String> manifestEntries, Collection<String> checkedEntries, boolean rootProcess) This method verifies whether all entries in amanifestFileare covered bycoveredEntriesrecursivelyprotected eu.europa.esig.dss.i18n.MessageTagReturns an i18n key String of an error message to getprotected eu.europa.esig.dss.enumerations.IndicationGets an Indication in case of failureprotected eu.europa.esig.dss.enumerations.SubIndicationGets a SubIndication in case of failureprotected eu.europa.esig.dss.i18n.MessageTagReturns an i18n key String of a message to getprotected booleanprocess()Performs the checkMethods inherited from class ChainItem
buildAdditionalInfo, buildConstraintMessage, buildErrorMessage, buildXmlMessage, continueProcessOnFail, execute, getAdditionalInfo, getBlockType, getLevel, getPreviousErrors, getSuccessIndication, getSuccessSubIndication, isIndeterminateConclusion, isInvalidConclusion, isValid, isValidConclusion, setNextItem
-
Field Details
-
diagnosticData
protected final eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticDataDiagnostic data -
timestampFilename
Filename of the timestamp file to be verified
-
-
Constructor Details
-
AbstractSignedAndTimestampedFilesCoveredCheck
protected AbstractSignedAndTimestampedFilesCoveredCheck(eu.europa.esig.dss.i18n.I18nProvider i18nProvider, T result, eu.europa.esig.dss.diagnostic.DiagnosticData diagnosticData, String timestampFilename, eu.europa.esig.dss.model.policy.LevelRule constraint) Default constructor- Parameters:
i18nProvider-I18nProviderresult-XmlConstraintsConclusiondiagnosticData-DiagnosticDatatimestampFilename-Stringconstraint-LevelRule
-
-
Method Details
-
process
-
checkManifestFilesCovered
This method is used to run the validation process for the manifest entries coverage- Parameters:
entries- a list ofStringentries covered by a timestamp or a manifest- Returns:
- TRUE if all manifest entries are covered recursively, FALSE otherwise
-
checkManifestFilesCoveredRecursively
protected boolean checkManifestFilesCoveredRecursively(List<String> coveredEntries, List<String> manifestEntries, Collection<String> checkedEntries, boolean rootProcess) This method verifies whether all entries in amanifestFileare covered bycoveredEntriesrecursively- Parameters:
coveredEntries- a list ofStringentries covered by a timestamp or a manifestmanifestEntries- a list ofStrings containing manifest entries to be evaluatedcheckedEntries- a collection ofStrings containing already processed entriesrootProcess- whether the root manifest is processed- Returns:
- TRUE if all manifest entries are covered recursively, FALSE otherwise
-
getMessageTag
protected eu.europa.esig.dss.i18n.MessageTag getMessageTag()Description copied from class:ChainItemReturns an i18n key String of a message to get- Overrides:
getMessageTagin classChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>- Returns:
MessageTagkey
-
getErrorMessageTag
protected eu.europa.esig.dss.i18n.MessageTag getErrorMessageTag()Description copied from class:ChainItemReturns an i18n key String of an error message to get- Overrides:
getErrorMessageTagin classChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>- Returns:
MessageTagkey
-
getFailedIndicationForConclusion
protected eu.europa.esig.dss.enumerations.Indication getFailedIndicationForConclusion()Description copied from class:ChainItemGets an Indication in case of failure- Specified by:
getFailedIndicationForConclusionin classChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>- Returns:
Indication
-
getFailedSubIndicationForConclusion
protected eu.europa.esig.dss.enumerations.SubIndication getFailedSubIndicationForConclusion()Description copied from class:ChainItemGets a SubIndication in case of failure- Specified by:
getFailedSubIndicationForConclusionin classChainItem<T extends eu.europa.esig.dss.detailedreport.jaxb.XmlConstraintsConclusion>- Returns:
SubIndication
-