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, timestampType
Fields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
certificateVerifier, containerContents, detachedContents, document, manifestFile, processExecutor, signatureScopeFinder, signingCertificateSource, skipValidationContextExecution
-
Constructor Summary
ConstructorDescriptionASiCWithCAdESTimestampValidator
(DSSDocument timestamp) Default constructorASiCWithCAdESTimestampValidator
(DSSDocument timestamp, TimestampType type) Default constructor with a timestamp type -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addReference
(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 TimestampToken
This method creates a timestamp token from the validating documentReturns the coveredManifestFile
protected ASiCWithCAdESTimestampScopeFinder
This method returns a timestamp scope finderprotected void
prepareDetachedTimestampScopeFinder
(DetachedTimestampScopeFinder timestampScopeFinder) This method is used to prepare aDetachedTimestampScopeFinder
for executionvoid
setArchiveDocuments
(List<DSSDocument> archiveDocuments) Sets the document embedded inside package.zip, when applicablevoid
setOriginalDocuments
(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, setValidationLevel
Methods 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
-DSSDocument
the timestamp document file
-
ASiCWithCAdESTimestampValidator
Default constructor with a timestamp type- Parameters:
timestamp
-DSSDocument
the timestamp document filetype
-TimestampType
type 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 ofDSSDocument
s
-
setArchiveDocuments
Sets the document embedded inside package.zip, when applicable- Parameters:
archiveDocuments
- a list ofDSSDocument
s
-
createTimestampToken
Description copied from class:DetachedTimestampValidator
This method creates a timestamp token from the validating document- Overrides:
createTimestampToken
in classDetachedTimestampValidator
- Returns:
TimestampToken
-
getTimestampScopeFinder
Description copied from class:SignedDocumentValidator
This method returns a timestamp scope finder- Overrides:
getTimestampScopeFinder
in classDetachedTimestampValidator
- Returns:
TimestampScopeFinder
-
prepareDetachedTimestampScopeFinder
protected void prepareDetachedTimestampScopeFinder(DetachedTimestampScopeFinder timestampScopeFinder) Description copied from class:DetachedTimestampValidator
This method is used to prepare aDetachedTimestampScopeFinder
for execution- Overrides:
prepareDetachedTimestampScopeFinder
in classDetachedTimestampValidator
- Parameters:
timestampScopeFinder
-DetachedTimestampScopeFinder
-
addReference
Description copied from class:SignedDocumentValidator
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 files- Overrides:
addReference
in classSignedDocumentValidator
- Parameters:
signatureScope
-SignatureScope
to check- Returns:
- TRUE if the timestamped reference shall be created for the given
SignatureScope
, FALSE otherwise
-