Class ASiCWithCAdESTimestampValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.validation.timestamp.DetachedTimestampValidator
eu.europa.esig.dss.asic.cades.validation.ASiCWithCAdESTimestampValidator
- All Implemented Interfaces:
DocumentValidator,ProcessExecutorProvider<DocumentProcessExecutor>,TimestampValidator
The abstract validator for an ASiC with CAdES timestamp
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.timestamp.DetachedTimestampValidator
timestampToken, timestampTypeFields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
certificateVerifier, containerContents, detachedContents, document, manifestFile, processExecutor, signatureScopeFinder, signingCertificateSource, skipValidationContextExecution -
Constructor Summary
ConstructorsConstructorDescriptionASiCWithCAdESTimestampValidator(DSSDocument timestamp) Default constructorASiCWithCAdESTimestampValidator(DSSDocument timestamp, TimestampType type) Default constructor with a timestamp type -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddReference(SignatureScope signatureScope) Checks if the signature scope shall be added as a timestamped reference NOTE: used to avoid duplicates in ASiC with CAdES validator, due to covered signature/timestamp filesprotected TimestampTokenThis method creates a timestamp token from the validating documentReturns the coveredManifestFileprotected ASiCWithCAdESTimestampScopeFinderThis method returns a timestamp scope finderprotected voidprepareDetachedTimestampScopeFinder(DetachedTimestampScopeFinder timestampScopeFinder) This method is used to prepare aDetachedTimestampScopeFinderfor executionvoidsetArchiveDocuments(List<DSSDocument> archiveDocuments) Sets the document embedded inside package.zip, when applicablevoidsetOriginalDocuments(List<DSSDocument> originalDocuments) Sets the original documents present in the ASiC containerMethods inherited from class eu.europa.esig.dss.validation.timestamp.DetachedTimestampValidator
assertConfigurationValid, buildDetachedTimestamps, getOriginalDocuments, getOriginalDocuments, getTimestamp, getTimestampedData, isSupported, setTimestampedData, setValidationLevelMethods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
appendCounterSignatures, buildSignatures, createDiagnosticDataBuilder, findSignatureScopes, findTimestampScopes, fromDocument, getAllSignatures, getDefaultDigestAlgorithm, getDefaultProcessExecutor, getDetachedTimestamps, getDiagnosticData, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, initializeDiagnosticDataBuilder, instantiateValidationDataContainer, prepareDetachedTimestampValidationContext, prepareDiagnosticDataBuilder, prepareSignatureForVerification, prepareSignatureScopeFinder, prepareSignatureValidationContext, prepareTimestampScopeFinder, prepareValidationContext, processSignaturesValidation, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDetachedContents, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationTime, validateContext, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Constructor Details
-
ASiCWithCAdESTimestampValidator
Default constructor- Parameters:
timestamp-DSSDocumentthe timestamp document file
-
ASiCWithCAdESTimestampValidator
Default constructor with a timestamp type- Parameters:
timestamp-DSSDocumentthe timestamp document filetype-TimestampTypetype of the timestamp
-
-
Method Details
-
getCoveredManifest
Returns the coveredManifestFile- Returns:
ManifestFile
-
setOriginalDocuments
Sets the original documents present in the ASiC container- Parameters:
originalDocuments- a list ofDSSDocuments
-
setArchiveDocuments
Sets the document embedded inside package.zip, when applicable- Parameters:
archiveDocuments- a list ofDSSDocuments
-
createTimestampToken
Description copied from class:DetachedTimestampValidatorThis method creates a timestamp token from the validating document- Overrides:
createTimestampTokenin classDetachedTimestampValidator- Returns:
TimestampToken
-
getTimestampScopeFinder
Description copied from class:SignedDocumentValidatorThis method returns a timestamp scope finder- Overrides:
getTimestampScopeFinderin classDetachedTimestampValidator- Returns:
TimestampScopeFinder
-
prepareDetachedTimestampScopeFinder
protected void prepareDetachedTimestampScopeFinder(DetachedTimestampScopeFinder timestampScopeFinder) Description copied from class:DetachedTimestampValidatorThis method is used to prepare aDetachedTimestampScopeFinderfor execution- Overrides:
prepareDetachedTimestampScopeFinderin classDetachedTimestampValidator- Parameters:
timestampScopeFinder-DetachedTimestampScopeFinder
-
addReference
Description copied from class:SignedDocumentValidatorChecks if the signature scope shall be added as a timestamped reference NOTE: used to avoid duplicates in ASiC with CAdES validator, due to covered signature/timestamp files- Overrides:
addReferencein classSignedDocumentValidator- Parameters:
signatureScope-SignatureScopeto check- Returns:
- TRUE if the timestamped reference shall be created for the given
SignatureScope, FALSE otherwise
-