Class DetachedTimestampValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.validation.timestamp.DetachedTimestampValidator
- All Implemented Interfaces:
DocumentValidator,ProcessExecutorProvider<DocumentProcessExecutor>
- Direct Known Subclasses:
ASiCEWithCAdESTimestampValidator
public class DetachedTimestampValidator extends SignedDocumentValidator
-
Field Summary
Fields Modifier and Type Field Description protected TimestampTokentimestampTokenprotected TimestampTypetimestampTypeFields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
certificateVerifier, containerContents, detachedContents, document, manifestFiles, processExecutor, providedSigningCertificateToken, signatureScopeFinder, skipValidationContextExecution -
Constructor Summary
Constructors Constructor Description DetachedTimestampValidator(DSSDocument timestampFile)DetachedTimestampValidator(DSSDocument timestampFile, TimestampType timestampType) -
Method Summary
Modifier and Type Method Description protected voidassertConfigurationValid()Checks if the Validator configuration is validList<TimestampToken>getDetachedTimestamps()Retrieves the detached timestamps found in the documentList<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)TimestampTokengetTimestamp()Returns a single TimestampToken to be validatedDSSDocumentgetTimestampedData()protected List<SignatureScope>getTimestampSignatureScope()Returns a list of timestamp signature scopes (timestamped data)booleanisSupported(DSSDocument dssDocument)voidsetTimestampedData(DSSDocument document)voidsetValidationLevel(ValidationLevel validationLevel)This method allows to specify the validation level (Basic / Timestamp / Long Term / Archival).Methods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
defineSigningCertificate, findSignatureScopes, fromDocument, getAllSignatures, getDefaultDigestAlgorithm, getDefaultProcessExecutor, getDiagnosticDataBuilderConfiguration, getSignaturePolicyProvider, getSignatures, getValidationTime, mergeCertificateSource, mergeCRLSources, mergeOCSPSources, prepareCertificatesAndTimestamps, prepareCertificateVerifier, prepareDetachedTimestampValidationContext, prepareDiagnosticDataBuilder, prepareSignatureValidationContext, processSignaturesValidation, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDetachedContents, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFiles, setProcessExecutor, setSignaturePolicyProvider, setSignedScopeFinderDefaultDigestAlgorithm, setSkipValidationContextExecution, setTokenExtractionStategy, setValidationTime, validateContext, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Field Details
-
Constructor Details
-
Method Details
-
isSupported
- Specified by:
isSupportedin classSignedDocumentValidator
-
assertConfigurationValid
protected void assertConfigurationValid()Description copied from class:SignedDocumentValidatorChecks if the Validator configuration is valid- Overrides:
assertConfigurationValidin classSignedDocumentValidator
-
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
-
getTimestamp
Returns a single TimestampToken to be validated- Returns:
TimestampToken
-
setValidationLevel
Description copied from interface:DocumentValidatorThis method allows to specify the validation level (Basic / Timestamp / Long Term / Archival). By default, the selected validation is ARCHIVAL- Specified by:
setValidationLevelin interfaceDocumentValidator- Overrides:
setValidationLevelin classSignedDocumentValidator- Parameters:
validationLevel-ValidationLevel
-
setTimestampedData
-
getTimestampedData
-
getTimestampSignatureScope
Returns a list of timestamp signature scopes (timestamped data)- Returns:
- a list of
SignatureScopes
-
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
-
getOriginalDocuments
Description copied from interface:DocumentValidatorThis method returns the signed document(s) without their signature(s)- Parameters:
advancedSignature-AdvancedSignatureto find signer documents for
-