Class FilenameAdherenceCheck<T extends AbstractSignatureWrapper>
java.lang.Object
eu.europa.esig.dss.validation.process.ChainItem<XmlFC>
eu.europa.esig.dss.validation.process.bbb.fc.checks.FilenameAdherenceCheck<T>
- Type Parameters:
T-AbstractSignatureWrapperimplementation (signature or timestamp)
- Direct Known Subclasses:
SignatureFilenameAdherenceCheck,SignatureManifestFilenameAdherenceCheck,TimestampFilenameAdherenceCheck,TimestampManifestFilenameAdherenceCheck
public abstract class FilenameAdherenceCheck<T extends AbstractSignatureWrapper>
extends ChainItem<XmlFC>
Verifies validity of the token's filename according to the ASiC's specification
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringThe ASiC Archive Manifest nameprotected static final StringThe default XML manifest filename (META-INF/manifest.xml)protected final DiagnosticDataDiagnostic dataprotected static final StringThe evidence record filenameprotected static final StringThe META-INF folderprotected static final StringThe default ASiC manifest filename (META-INF/ASiCManifest*.xml)protected static final StringThe signature filenameprotected static final StringThe timestamp filenameprotected final TToken to be verifiedprotected static final StringThe XML file extensionFields inherited from class eu.europa.esig.dss.validation.process.ChainItem
i18nProvider -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFilenameAdherenceCheck(I18nProvider i18nProvider, XmlFC result, DiagnosticData diagnosticData, T token, LevelRule constraint) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected IndicationGets an Indication in case of failureprotected SubIndicationGets a SubIndication in case of failureprotected booleanisASiCArchiveManifest(String filename) Checks if the filename corresponds to the "META-INF/*ASiCArchiveManifest*.xml" patternprotected booleanisASiCManifest(String filename) Checks if the filename corresponds to the "META-INF/ASiCManifest*.xml" patternMethods inherited from class eu.europa.esig.dss.validation.process.ChainItem
buildAdditionalInfo, buildConstraintMessage, buildErrorMessage, buildXmlMessage, execute, getAdditionalInfo, getBlockType, getErrorMessageTag, getLevel, getMessageTag, getPreviousErrors, getSuccessIndication, getSuccessSubIndication, isIndeterminateConclusion, isInvalidConclusion, isValid, isValidConclusion, process, setNextItem
-
Field Details
-
META_INF_FOLDER
The META-INF folder- See Also:
-
SIGNATURE_FILENAME
The signature filename- See Also:
-
TIMESTAMP_FILENAME
The timestamp filename- See Also:
-
EVIDENCE_RECORD_FILENAME
The evidence record filename- See Also:
-
ARCHIVE_MANIFEST_FILENAME
The ASiC Archive Manifest name- See Also:
-
ASICE_METAINF_MANIFEST
The default XML manifest filename (META-INF/manifest.xml)- See Also:
-
METAINF_ASIC_MANIFEST
The default ASiC manifest filename (META-INF/ASiCManifest*.xml)- See Also:
-
XML_EXTENSION
The XML file extension- See Also:
-
token
Token to be verified -
diagnosticData
Diagnostic data
-
-
Constructor Details
-
FilenameAdherenceCheck
protected FilenameAdherenceCheck(I18nProvider i18nProvider, XmlFC result, DiagnosticData diagnosticData, T token, LevelRule constraint) Default constructor- Parameters:
i18nProvider-I18nProviderresult-XmlFCdiagnosticData-DiagnosticDatatoken-AbstractSignatureWrapperconstraint-LevelRule
-
-
Method Details
-
isASiCManifest
Checks if the filename corresponds to the "META-INF/ASiCManifest*.xml" pattern- Parameters:
filename-Stringto check- Returns:
- TRUE if the filename matches the ASiCManifest definition, FALSE otherwise
-
isASiCArchiveManifest
Checks if the filename corresponds to the "META-INF/*ASiCArchiveManifest*.xml" pattern- Parameters:
filename-Stringto check- Returns:
- TRUE if the filename matches the ASiCArchiveManifest definition, FALSE otherwise
-
getFailedIndicationForConclusion
Description copied from class:ChainItemGets an Indication in case of failure- Specified by:
getFailedIndicationForConclusionin classChainItem<XmlFC>- Returns:
Indication
-
getFailedSubIndicationForConclusion
Description copied from class:ChainItemGets a SubIndication in case of failure- Specified by:
getFailedSubIndicationForConclusionin classChainItem<XmlFC>- Returns:
SubIndication
-