Class DetachedTimestampValidator
java.lang.Object
eu.europa.esig.dss.validation.SignedDocumentValidator
eu.europa.esig.dss.validation.timestamp.DetachedTimestampValidator
- All Implemented Interfaces:
DocumentValidator
,ProcessExecutorProvider<DocumentProcessExecutor>
,TimestampValidator
- Direct Known Subclasses:
ASiCWithCAdESTimestampValidator
public class DetachedTimestampValidator
extends SignedDocumentValidator
implements TimestampValidator
Detached CMS TimestampToken Validator
-
Field Summary
Fields inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
documentAnalyzer, processExecutor
-
Constructor Summary
ModifierConstructorDescriptionDetachedTimestampValidator
(DSSDocument timestampFile) The default constructorDetachedTimestampValidator
(DSSDocument timestampFile, TimestampType timestampType) The default constructor with a typeprotected
DetachedTimestampValidator
(DetachedTimestampAnalyzer detachedTimestampAnalyzer) Constructor with an analyzer -
Method Summary
Modifier and TypeMethodDescriptionReturns the current instance ofDocumentAnalyzer
getOriginalDocuments
(AdvancedSignature advancedSignature) This method returns the signed document(s) without their signature(s)getOriginalDocuments
(String signatureId) This method returns the signed document(s) without their signature(s)Returns a single TimestampToken to be validatedReturns the timestamped datavoid
setTimestampedData
(DSSDocument document) Sets the data that has been timestampedMethods inherited from class eu.europa.esig.dss.validation.SignedDocumentValidator
assertConfigurationValid, fromDocument, getDefaultProcessExecutor, getDetachedEvidenceRecords, getDetachedTimestamps, getDiagnosticData, getSignatureById, getSignaturePolicyValidatorLoader, getSignatures, getValidationData, getValidationData, initializeDiagnosticDataBuilder, isSupported, processValidationPolicy, provideProcessExecutorInstance, setCertificateVerifier, setContainerContents, setDefaultDigestAlgorithm, setDetachedContents, setDetachedEvidenceRecordDocuments, setEnableEtsiValidationReport, setIncludeSemantics, setLocale, setManifestFile, setProcessExecutor, setSignaturePolicyProvider, setSigningCertificateSource, setSkipValidationContextExecution, setTokenExtractionStrategy, setTokenIdentifierProvider, setValidationContextExecutor, setValidationLevel, setValidationTime, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument, validateDocument
-
Constructor Details
-
DetachedTimestampValidator
Constructor with an analyzer- Parameters:
detachedTimestampAnalyzer
-DetachedTimestampAnalyzer
-
DetachedTimestampValidator
The default constructor- Parameters:
timestampFile
-DSSDocument
timestamp document to validate
-
DetachedTimestampValidator
The default constructor with a type- Parameters:
timestampFile
-DSSDocument
timestamp document to validatetimestampType
-TimestampType
-
-
Method Details
-
getDocumentAnalyzer
Description copied from class:SignedDocumentValidator
Returns the current instance ofDocumentAnalyzer
- Overrides:
getDocumentAnalyzer
in classSignedDocumentValidator
- Returns:
DocumentAnalyzer
-
getTimestamp
Description copied from interface:TimestampValidator
Returns a single TimestampToken to be validated- Specified by:
getTimestamp
in interfaceTimestampValidator
- Returns:
TimestampToken
-
setTimestampedData
Sets the data that has been timestamped- Parameters:
document
-DSSDocument
timestamped data
-
getTimestampedData
Description copied from interface:TimestampValidator
Returns the timestamped data- Specified by:
getTimestampedData
in interfaceTimestampValidator
- Returns:
DSSDocument
timestamped data
-
getOriginalDocuments
Description copied from interface:DocumentValidator
This method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocuments
in interfaceDocumentValidator
- Overrides:
getOriginalDocuments
in classSignedDocumentValidator
- Parameters:
signatureId
- the DSS ID of the signature to extract original signer data for- Returns:
- list of
DSSDocument
s
-
getOriginalDocuments
Description copied from interface:DocumentValidator
This method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocuments
in interfaceDocumentValidator
- Overrides:
getOriginalDocuments
in classSignedDocumentValidator
- Parameters:
advancedSignature
-AdvancedSignature
to find signer documents for- Returns:
- list of
DSSDocument
s
-