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, detachedEvidenceRecordDocuments, document, manifestFile, processExecutor, 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 List
<SignatureScope> getTimestampScopes
(TimestampToken timestampToken) Finds timestamp scopesvoid
setArchiveDocuments
(List<DSSDocument> archiveDocuments) Sets the document embedded inside package.zip, when applicablevoid
setArchiveTimestampType
(ArchiveTimestampType archiveTimestampType) Sets the archive timestamp typevoid
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, appendExternalEvidenceRecords, buildDetachedEvidenceRecords, buildEvidenceRecord, buildSignatures, coversSignature, createDiagnosticDataBuilder, createDiagnosticDataBuilder, findSignatureScopes, fromDocument, getAllSignatures, getDefaultDigestAlgorithm, getDefaultProcessExecutor, getDetachedEvidenceRecords, getDetachedTimestamps, getDiagnosticData, getEvidenceRecord, getEvidenceRecordScopes, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, initializeDiagnosticDataBuilder, instantiateValidationDataContainer, prepareDetachedEvidenceRecordValidationContext, prepareDetachedTimestampValidationContext, prepareDiagnosticDataBuilder, prepareSignatureForVerification, prepareSignatureValidationContext, prepareValidationContext, prepareValidationContext, processSignaturesValidation, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDetachedContents, setDetachedEvidenceRecordDocuments, 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
-
setArchiveTimestampType
Sets the archive timestamp type- Parameters:
archiveTimestampType
-ArchiveTimestampType
-
createTimestampToken
Description copied from class:DetachedTimestampValidator
This method creates a timestamp token from the validating document- Overrides:
createTimestampToken
in classDetachedTimestampValidator
- Returns:
TimestampToken
-
getTimestampScopes
Description copied from class:DetachedTimestampValidator
Finds timestamp scopes- Overrides:
getTimestampScopes
in classDetachedTimestampValidator
- Parameters:
timestampToken
-TimestampToken
- Returns:
- a list of
SignatureScope
s
-
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
-