Class ASiCContainerWithCAdESValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.asic.common.validation.AbstractASiCContainerValidator
eu.europa.esig.dss.asic.cades.validation.ASiCContainerWithCAdESValidator
- All Implemented Interfaces:
DocumentValidator,ProcessExecutorProvider<DocumentProcessExecutor>
public class ASiCContainerWithCAdESValidator extends AbstractASiCContainerValidator
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.AbstractASiCContainerValidator
extractResult, signatureValidators, timestampValidatorsFields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
certificateVerifier, containerContents, detachedContents, document, manifestFile, processExecutor, signatureScopeFinder, signingCertificateSource, skipValidationContextExecution -
Constructor Summary
Constructors Constructor Description ASiCContainerWithCAdESValidator(DSSDocument asicContainer)The default constructor -
Method Summary
Modifier and Type Method Description protected List<TimestampToken>attachExternalTimestamps(List<AdvancedSignature> allSignatures)Attaches existing external timestamps to the list ofAdvancedSignaturesList<DSSDocument>getArchiveDocuments()Returns a list of archive documents embedded the containerprotected AbstractASiCContainerExtractorgetContainerExtractor()Returns the relevant container extractorList<TimestampToken>getDetachedTimestamps()Retrieves the detached timestamps found in the documentprotected List<ManifestFile>getManifestFilesDescriptions()Returns a list of parser ManifestFilesList<DSSDocument>getOriginalDocuments(AdvancedSignature advancedSignature)This method returns the signed document(s) without their signature(s)List<DSSDocument>getOriginalDocuments(String signatureId)This method returns the signed document(s) without their signature(s)protected List<DocumentValidator>getSignatureValidators()Returns a list of validators for signature documents embedded into the containerprotected List<DocumentValidator>getTimestampValidators()Returns a list of timestamp validators for timestamps embedded into the containerprotected ASiCWithCAdESDiagnosticDataBuilderinitializeDiagnosticDataBuilder()Initializes a relevantDiagnosticDataBuilderfor the given implementationbooleanisSupported(DSSDocument dssDocument)Checks if the document is supported by the current validatorMethods inherited from class eu.europa.esig.dss.asic.common.validation.AbstractASiCContainerValidator
createDiagnosticDataBuilder, extractEntries, getAllDocuments, getAllManifestDocuments, getAllSignatures, getArchiveManifestDocuments, getContainerInfo, getContainerType, getManifestDocuments, getManifestFiles, getMimeTypeDocument, getSignatureDocuments, getSignatures, getSignedDocuments, getSignedDocumentsASiCS, getTimestampDocuments, getUnsupportedDocumentsMethods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
appendCounterSignatures, assertConfigurationValid, defineSigningCertificate, findSignatureScopes, fromDocument, getDefaultDigestAlgorithm, getDefaultProcessExecutor, getSignaturePolicyProvider, getValidationTime, mergeCertificateSource, mergeCRLSources, mergeOCSPSources, prepareCertificatesAndTimestamps, prepareCertificateVerifier, prepareDetachedTimestampValidationContext, prepareDiagnosticDataBuilder, prepareSignatureValidationContext, processSignaturesValidation, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDetachedContents, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSignedScopeFinderDefaultDigestAlgorithm, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setValidationLevel, setValidationTime, validateContext, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Constructor Details
-
ASiCContainerWithCAdESValidator
The default constructor- Parameters:
asicContainer-DSSDocumentto be validated
-
-
Method Details
-
isSupported
Description copied from class:SignedDocumentValidatorChecks if the document is supported by the current validator- Specified by:
isSupportedin classSignedDocumentValidator- Parameters:
dssDocument-DSSDocumentto check- Returns:
- TRUE if the document is supported, FALSE otherwise
-
getContainerExtractor
Description copied from class:AbstractASiCContainerValidatorReturns the relevant container extractor- Specified by:
getContainerExtractorin classAbstractASiCContainerValidator- Returns:
AbstractASiCContainerExtractor
-
getSignatureValidators
Description copied from class:AbstractASiCContainerValidatorReturns a list of validators for signature documents embedded into the container- Specified by:
getSignatureValidatorsin classAbstractASiCContainerValidator- Returns:
- a list of
DocumentValidators
-
getTimestampValidators
Returns a list of timestamp validators for timestamps embedded into the container- Returns:
- a list of
DocumentValidators
-
getDetachedTimestamps
Description copied from interface:DocumentValidatorRetrieves the detached timestamps found in the document- Specified by:
getDetachedTimestampsin interfaceDocumentValidator- Overrides:
getDetachedTimestampsin classSignedDocumentValidator- Returns:
- a list of TimestampToken for validation purposes
-
getArchiveDocuments
Description copied from class:AbstractASiCContainerValidatorReturns a list of archive documents embedded the container- Overrides:
getArchiveDocumentsin classAbstractASiCContainerValidator- Returns:
- a list of archive
DSSDocuments
-
attachExternalTimestamps
Description copied from class:AbstractASiCContainerValidatorAttaches existing external timestamps to the list ofAdvancedSignatures- Overrides:
attachExternalTimestampsin classAbstractASiCContainerValidator- Parameters:
allSignatures- list ofAdvancedSignatures- Returns:
- list of attached
TimestampTokens
-
getManifestFilesDescriptions
Description copied from class:AbstractASiCContainerValidatorReturns a list of parser ManifestFiles- Specified by:
getManifestFilesDescriptionsin classAbstractASiCContainerValidator- Returns:
- a list of
ManifestFiles
-
getOriginalDocuments
Description copied from interface:DocumentValidatorThis method returns the signed document(s) without their signature(s)- Parameters:
signatureId- the DSS ID of the signature to extract original signer data for- Returns:
- list of
DSSDocuments
-
getOriginalDocuments
Description copied from interface:DocumentValidatorThis method returns the signed document(s) without their signature(s)- Parameters:
advancedSignature-AdvancedSignatureto find signer documents for- Returns:
- list of
DSSDocuments
-
initializeDiagnosticDataBuilder
Description copied from class:SignedDocumentValidatorInitializes a relevantDiagnosticDataBuilderfor the given implementation- Overrides:
initializeDiagnosticDataBuilderin classAbstractASiCContainerValidator- Returns:
SignedDocumentDiagnosticDataBuilder
-