Class AbstractASiCContainerValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.asic.common.validation.AbstractASiCContainerValidator
- All Implemented Interfaces:
DocumentValidator,ProcessExecutorProvider<DocumentProcessExecutor>
- Direct Known Subclasses:
ASiCContainerWithCAdESValidator,ASiCContainerWithXAdESValidator
The abstract class for an ASiC container validation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ASiCContentThe container extraction resultprotected List<DocumentValidator>List of signature document validatorsprotected List<DetachedTimestampValidator>List of timestamp document validatorsFields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
certificateVerifier, containerContents, detachedContents, document, manifestFile, processExecutor, signatureScopeFinder, signingCertificateSource, skipValidationContextExecution -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEmpty constructorprotectedAbstractASiCContainerValidator(ASiCContent asicContent) The constructor withASiCContentprotectedAbstractASiCContainerValidator(ASiCContent asicContent, SignatureScopeFinder<?> signatureScopeFinder) Constructor with aASiCContentprotectedAbstractASiCContainerValidator(DSSDocument document) The default constructorprotectedAbstractASiCContainerValidator(DSSDocument document, SignatureScopeFinder<?> signatureScopeFinder) Constructor with a customSignatureScopeFinder -
Method Summary
Modifier and TypeMethodDescriptionprotected List<TimestampToken>attachExternalTimestamps(List<AdvancedSignature> allSignatures) Attaches existing external timestamps to the list ofAdvancedSignaturesprotected List<AdvancedSignature>This method build a list of signatures to be extracted from a documentprotected DiagnosticDataBuildercreateDiagnosticDataBuilder(ValidationContext validationContext, List<AdvancedSignature> signatures) Creates and fills theDiagnosticDataBuilderwith a relevant dataReturns a list of all embedded documentsReturns a list of all embedded manifest documentsReturns a list of all signatures from the validating documentReturns a list of archive documents embedded the containerReturns a list of embedded archive manifest documentsprotected abstract AbstractASiCContainerExtractorReturns the relevant container extractorprotected ContainerInfoThis method allows to retrieve the container information (ASiC Container)Returns a container typeReturns a list of embedded signature manifest documentsReturns a list of parser Manifest filesprotected abstract List<ManifestFile>Returns a list of parser ManifestFilesReturns a mimetype documentReturns a list of embedded signature documentsprotected abstract List<DocumentValidator>Returns a list of validators for signature documents embedded into the containerReturns a list of embedded signed documentsprotected List<DSSDocument>getSignedDocumentsASiCS(List<DSSDocument> retrievedDocs) Returns a list of "package.zip" documentsReturns a list of embedded timestamp documentsReturns a list of unsupported documents from the containerprotected ASiCContainerDiagnosticDataBuilderInitializes a relevantDiagnosticDataBuilderfor the given implementationabstract booleanisSupported(ASiCContent asicContent) Checks if theASiCContentis supported by the current validatorMethods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
addReference, appendCounterSignatures, assertConfigurationValid, buildDetachedTimestamps, findSignatureScopes, findTimestampScopes, fromDocument, getDefaultDigestAlgorithm, getDefaultProcessExecutor, getDetachedTimestamps, getDiagnosticData, getOriginalDocuments, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTimestampScopeFinder, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, instantiateValidationDataContainer, isSupported, prepareDetachedTimestampValidationContext, prepareDiagnosticDataBuilder, prepareSignatureForVerification, prepareSignatureScopeFinder, prepareSignatureValidationContext, prepareTimestampScopeFinder, prepareValidationContext, processSignaturesValidation, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDetachedContents, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationLevel, setValidationTime, validateContext, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.validation.DocumentValidator
getOriginalDocuments
-
Field Details
-
asicContent
The container extraction result -
signatureValidators
List of signature document validators -
timestampValidators
List of timestamp document validators
-
-
Constructor Details
-
AbstractASiCContainerValidator
protected AbstractASiCContainerValidator()Empty constructor -
AbstractASiCContainerValidator
The default constructor- Parameters:
document-DSSDocumentto be validated
-
AbstractASiCContainerValidator
The constructor withASiCContent- Parameters:
asicContent-ASiCContentto be validated
-
AbstractASiCContainerValidator
protected AbstractASiCContainerValidator(DSSDocument document, SignatureScopeFinder<?> signatureScopeFinder) Constructor with a customSignatureScopeFinder- Parameters:
document-DSSDocumentto be validatedsignatureScopeFinder-SignatureScopeFinderto be used
-
AbstractASiCContainerValidator
protected AbstractASiCContainerValidator(ASiCContent asicContent, SignatureScopeFinder<?> signatureScopeFinder) Constructor with aASiCContent- Parameters:
asicContent-ASiCContentto be validatedsignatureScopeFinder-SignatureScopeFinderto be used
-
-
Method Details
-
isSupported
Checks if theASiCContentis supported by the current validator- Parameters:
asicContent-ASiCContentto check- Returns:
- TRUE if the ASiC Content is supported, FALSE otherwise
-
getContainerExtractor
Returns the relevant container extractor- Returns:
AbstractASiCContainerExtractor
-
createDiagnosticDataBuilder
protected DiagnosticDataBuilder createDiagnosticDataBuilder(ValidationContext validationContext, List<AdvancedSignature> signatures) Description copied from class:SignedDocumentValidatorCreates and fills theDiagnosticDataBuilderwith a relevant data- Overrides:
createDiagnosticDataBuilderin classSignedDocumentValidator- Parameters:
validationContext-ValidationContextused for the validationsignatures- a list ofAdvancedSignatures to be validated collection- Returns:
- filled
DiagnosticDataBuilder
-
initializeDiagnosticDataBuilder
Description copied from class:SignedDocumentValidatorInitializes a relevantDiagnosticDataBuilderfor the given implementation- Overrides:
initializeDiagnosticDataBuilderin classSignedDocumentValidator- Returns:
SignedDocumentDiagnosticDataBuilder
-
getContainerInfo
This method allows to retrieve the container information (ASiC Container)- Returns:
- a DTO with the container information
-
attachExternalTimestamps
Attaches existing external timestamps to the list ofAdvancedSignatures- Parameters:
allSignatures- list ofAdvancedSignatures- Returns:
- list of attached
TimestampTokens
-
getManifestFilesDescriptions
Returns a list of parser ManifestFiles- Returns:
- a list of
ManifestFiles
-
getAllSignatures
Description copied from class:SignedDocumentValidatorReturns a list of all signatures from the validating document- Overrides:
getAllSignaturesin classSignedDocumentValidator- Returns:
- a list of
AdvancedSignatures
-
buildSignatures
Description copied from class:SignedDocumentValidatorThis method build a list of signatures to be extracted from a document- Overrides:
buildSignaturesin classSignedDocumentValidator- Returns:
- a list of
AdvancedSignatures
-
getSignatureValidators
Returns a list of validators for signature documents embedded into the container- Returns:
- a list of
DocumentValidators
-
getContainerType
Returns a container type- Returns:
ASiCContainerType
-
getAllDocuments
Returns a list of all embedded documents- Returns:
- a list of all embedded
DSSDocuments
-
getSignatureDocuments
Returns a list of embedded signature documents- Returns:
- a list of signature
DSSDocuments
-
getSignedDocuments
Returns a list of embedded signed documents- Returns:
- a list of signed
DSSDocuments
-
getManifestDocuments
Returns a list of embedded signature manifest documents- Returns:
- a list of signature manifest
DSSDocuments
-
getTimestampDocuments
Returns a list of embedded timestamp documents- Returns:
- a list of timestamp
DSSDocuments
-
getArchiveManifestDocuments
Returns a list of embedded archive manifest documents- Returns:
- a list of archive manifest
DSSDocuments
-
getAllManifestDocuments
Returns a list of all embedded manifest documents- Returns:
- a list of manifest
DSSDocuments
-
getArchiveDocuments
Returns a list of archive documents embedded the container- Returns:
- a list of archive
DSSDocuments
-
getMimeTypeDocument
Returns a mimetype document- Returns:
DSSDocumentmimetype
-
getUnsupportedDocuments
Returns a list of unsupported documents from the container- Returns:
- a list of unsupported documents
DSSDocuments
-
getManifestFiles
Returns a list of parser Manifest files- Returns:
- a list of
ManifestFiles
-
getSignedDocumentsASiCS
Returns a list of "package.zip" documents- Parameters:
retrievedDocs- the retrieved signed documents- Returns:
- a list of
DSSDocuments
-