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
ConstructorsModifierConstructorDescriptionDetachedTimestampValidator(DSSDocument timestampFile) The default constructorDetachedTimestampValidator(DSSDocument timestampFile, TimestampType timestampType) The default constructor with a typeprotectedDetachedTimestampValidator(DetachedTimestampAnalyzer detachedTimestampAnalyzer) Constructor with an analyzer -
Method Summary
Modifier and TypeMethodDescriptionReturns the current instance ofDocumentAnalyzergetOriginalDocuments(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 datavoidsetTimestampedData(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-DSSDocumenttimestamp document to validate
-
DetachedTimestampValidator
The default constructor with a type- Parameters:
timestampFile-DSSDocumenttimestamp document to validatetimestampType-TimestampType
-
-
Method Details
-
getDocumentAnalyzer
Description copied from class:SignedDocumentValidatorReturns the current instance ofDocumentAnalyzer- Overrides:
getDocumentAnalyzerin classSignedDocumentValidator- Returns:
DocumentAnalyzer
-
getTimestamp
Description copied from interface:TimestampValidatorReturns a single TimestampToken to be validated- Specified by:
getTimestampin interfaceTimestampValidator- Returns:
TimestampToken
-
setTimestampedData
Sets the data that has been timestamped- Parameters:
document-DSSDocumenttimestamped data
-
getTimestampedData
Description copied from interface:TimestampValidatorReturns the timestamped data- Specified by:
getTimestampedDatain interfaceTimestampValidator- Returns:
DSSDocumenttimestamped data
-
getOriginalDocuments
Description copied from interface:DocumentValidatorThis method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocumentsin interfaceDocumentValidator- Overrides:
getOriginalDocumentsin classSignedDocumentValidator- Parameters:
signatureId- the DSS ID of the signature to extract original signer data for- Returns:
- list of
DSSDocuments
-
getOriginalDocuments
Description copied from interface:DocumentValidatorThis method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocumentsin interfaceDocumentValidator- Overrides:
getOriginalDocumentsin classSignedDocumentValidator- Parameters:
advancedSignature-AdvancedSignatureto find signer documents for- Returns:
- list of
DSSDocuments
-