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 TimestampToken
timestampToken
protected TimestampType
timestampType
Fields 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 void
assertConfigurationValid()
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)TimestampToken
getTimestamp()
Returns a single TimestampToken to be validatedDSSDocument
getTimestampedData()
protected List<SignatureScope>
getTimestampSignatureScope()
Returns a list of timestamp signature scopes (timestamped data)boolean
isSupported(DSSDocument dssDocument)
void
setTimestampedData(DSSDocument document)
void
setValidationLevel(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:
isSupported
in classSignedDocumentValidator
-
assertConfigurationValid
protected void assertConfigurationValid()Description copied from class:SignedDocumentValidator
Checks if the Validator configuration is valid- Overrides:
assertConfigurationValid
in classSignedDocumentValidator
-
getDetachedTimestamps
Description copied from interface:DocumentValidator
Retrieves the detached timestamps found in the document- Specified by:
getDetachedTimestamps
in interfaceDocumentValidator
- Overrides:
getDetachedTimestamps
in classSignedDocumentValidator
- Returns:
- a list of TimestampToken for validation purposes
-
getTimestamp
Returns a single TimestampToken to be validated- Returns:
TimestampToken
-
setValidationLevel
Description copied from interface:DocumentValidator
This method allows to specify the validation level (Basic / Timestamp / Long Term / Archival). By default, the selected validation is ARCHIVAL- Specified by:
setValidationLevel
in interfaceDocumentValidator
- Overrides:
setValidationLevel
in classSignedDocumentValidator
- Parameters:
validationLevel
-ValidationLevel
-
setTimestampedData
-
getTimestampedData
-
getTimestampSignatureScope
Returns a list of timestamp signature scopes (timestamped data)- Returns:
- a list of
SignatureScope
s
-
getOriginalDocuments
Description copied from interface:DocumentValidator
This 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:DocumentValidator
This method returns the signed document(s) without their signature(s)- Parameters:
advancedSignature
-AdvancedSignature
to find signer documents for
-