Class ASiCContainerWithCAdESAnalyzer
java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.asic.common.validation.AbstractASiCContainerAnalyzer
eu.europa.esig.dss.asic.cades.validation.ASiCContainerWithCAdESAnalyzer
- All Implemented Interfaces:
DocumentAnalyzer
This class is an implementation to validate ASiC containers with CAdES signature(s)
-
Field Summary
Fields inherited from class eu.europa.esig.dss.asic.common.validation.AbstractASiCContainerAnalyzer
asicContent, evidenceRecordAnalyzers, signatureValidators, timestampAnalyzers
Fields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource
-
Constructor Summary
ConstructorDescriptionASiCContainerWithCAdESAnalyzer
(ASiCContent asicContent) The constructor withASiCContent
ASiCContainerWithCAdESAnalyzer
(DSSDocument asicContainer) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<TimestampToken> attachExternalTimestamps
(List<AdvancedSignature> allSignatures) Attaches existing external timestamps to the list ofAdvancedSignature
sprotected List
<TimestampToken> Builds a list of detachedTimestampToken
s extracted from the documentReturns a list of archive documents embedded the containerprotected DefaultASiCContainerExtractor
Returns the relevant container extractorprotected List
<ManifestFile> Returns a list of parser ManifestFilesgetOriginalDocuments
(AdvancedSignature advancedSignature) This method returns the signed document(s) without their signature(s)protected List
<DocumentAnalyzer> Returns a list of validators for signature documents embedded into the containerprotected List
<TimestampAnalyzer> Returns a list of timestamp validators for timestamps embedded into the containerboolean
isSupported
(ASiCContent asicContent) Checks if theASiCContent
is supported by the current validatorboolean
isSupported
(DSSDocument dssDocument) Checks if the document is supported by the current validatorMethods inherited from class eu.europa.esig.dss.asic.common.validation.AbstractASiCContainerAnalyzer
addReference, assertEvidenceRecordDocumentExtensionMatch, attachExternalEvidenceRecords, buildDetachedEvidenceRecords, buildSignatures, coversSignature, getAllDocuments, getAllManifestDocuments, getAllSignatures, getArchiveManifestDocuments, getContainerInfo, getContainerType, getEvidenceRecordAnalyzers, getEvidenceRecordDocuments, getEvidenceRecordManifestDocuments, getManifestDocuments, getManifestFiles, getMimeTypeDocument, getSignatureDocuments, getSignedDocuments, getSignedDocumentsASiCS, getTimestampDocuments, getUnsupportedDocuments, getValidatedManifestFile
Methods inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
appendCounterSignatures, appendExternalEvidenceRecords, appendExternalEvidenceRecords, buildEvidenceRecord, createValidationContext, fromDocument, getAllEvidenceRecords, getDetachedEvidenceRecords, getDetachedTimestamps, getDocument, getEvidenceRecord, getEvidenceRecordScopes, getOriginalDocuments, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTimestampReaders, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, instantiateValidationDataContainer, isTimestampCoveredByEvidenceRecord, prepareDetachedEvidenceRecordValidationContext, prepareDetachedTimestampValidationContext, prepareSignatureForVerification, prepareSignatureValidationContext, prepareValidationContext, processSignaturesValidation, setCertificateVerifier, setContainerContents, setDetachedContents, setDetachedEvidenceRecordDocuments, setDetachedEvidenceRecords, setManifestFile, setSignaturePolicyProvider, setSigningCertificateSource, setTokenIdentifierProvider, setValidationContextExecutor, setValidationTime, validate, validateContext, validateSignaturePolicy
-
Constructor Details
-
ASiCContainerWithCAdESAnalyzer
The default constructor- Parameters:
asicContainer
-DSSDocument
to be validated
-
ASiCContainerWithCAdESAnalyzer
The constructor withASiCContent
- Parameters:
asicContent
-ASiCContent
to be validated
-
-
Method Details
-
isSupported
Description copied from interface:DocumentAnalyzer
Checks if the document is supported by the current validator- Parameters:
dssDocument
-DSSDocument
to check- Returns:
- TRUE if the document is supported, FALSE otherwise
-
isSupported
Description copied from class:AbstractASiCContainerAnalyzer
Checks if theASiCContent
is supported by the current validator- Specified by:
isSupported
in classAbstractASiCContainerAnalyzer
- Parameters:
asicContent
-ASiCContent
to check- Returns:
- TRUE if the ASiC Content is supported, FALSE otherwise
-
getContainerExtractor
Description copied from class:AbstractASiCContainerAnalyzer
Returns the relevant container extractor- Specified by:
getContainerExtractor
in classAbstractASiCContainerAnalyzer
- Returns:
DefaultASiCContainerExtractor
-
getSignatureAnalyzers
Description copied from class:AbstractASiCContainerAnalyzer
Returns a list of validators for signature documents embedded into the container- Specified by:
getSignatureAnalyzers
in classAbstractASiCContainerAnalyzer
- Returns:
- a list of
DocumentValidator
s
-
getTimestampAnalyzers
Returns a list of timestamp validators for timestamps embedded into the container- Returns:
- a list of
TimestampAnalyzer
s
-
buildDetachedTimestamps
Description copied from class:DefaultDocumentAnalyzer
Builds a list of detachedTimestampToken
s extracted from the document- Overrides:
buildDetachedTimestamps
in classDefaultDocumentAnalyzer
- Returns:
- a list of
TimestampToken
s
-
getArchiveDocuments
Description copied from class:AbstractASiCContainerAnalyzer
Returns a list of archive documents embedded the container- Overrides:
getArchiveDocuments
in classAbstractASiCContainerAnalyzer
- Returns:
- a list of archive
DSSDocument
s
-
attachExternalTimestamps
Description copied from class:AbstractASiCContainerAnalyzer
Attaches existing external timestamps to the list ofAdvancedSignature
s- Overrides:
attachExternalTimestamps
in classAbstractASiCContainerAnalyzer
- Parameters:
allSignatures
- list ofAdvancedSignature
s- Returns:
- list of attached
TimestampToken
s
-
getManifestFilesDescriptions
Description copied from class:AbstractASiCContainerAnalyzer
Returns a list of parser ManifestFiles- Specified by:
getManifestFilesDescriptions
in classAbstractASiCContainerAnalyzer
- Returns:
- a list of
ManifestFile
s
-
getOriginalDocuments
Description copied from interface:DocumentAnalyzer
This method returns the signed document(s) without their signature(s)- Parameters:
advancedSignature
-AdvancedSignature
to find signer documents for- Returns:
- list of
DSSDocument
s
-