Class DetachedTimestampAnalyzer
java.lang.Object
eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
eu.europa.esig.dss.validation.timestamp.DetachedTimestampAnalyzer
- All Implemented Interfaces:
DocumentAnalyzer
,TimestampAnalyzer
- Direct Known Subclasses:
ASiCWithCAdESTimestampAnalyzer
This class performs a processing of a detached timestamp document
-
Field Summary
Modifier and TypeFieldDescriptionprotected TimestampToken
The TimestampToken to be validatedprotected TimestampType
The type of the timestampFields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource
-
Constructor Summary
ConstructorDescriptionDetachedTimestampAnalyzer
(DSSDocument timestampFile) The default constructorDetachedTimestampAnalyzer
(DSSDocument timestampFile, TimestampType timestampType) The default constructor with a type -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<TimestampToken> Builds a list of detachedTimestampToken
s extracted from the documentprotected TimestampToken
This method creates a timestamp token from the validating documentgetOriginalDocuments
(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 dataprotected List
<SignatureScope> getTimestampScopes
(TimestampToken timestampToken) Finds timestamp scopesboolean
isSupported
(DSSDocument dssDocument) Checks if the document is supported by the current validatorvoid
setTimestampedData
(DSSDocument document) Sets the data that has been timestampedMethods inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
addReference, appendCounterSignatures, appendExternalEvidenceRecords, appendExternalEvidenceRecords, buildDetachedEvidenceRecords, buildEvidenceRecord, buildSignatures, coversSignature, createValidationContext, fromDocument, getAllEvidenceRecords, getAllSignatures, getDetachedEvidenceRecords, getDetachedTimestamps, getDocument, getEvidenceRecord, getEvidenceRecordScopes, getSignatureById, getSignaturePolicyProvider, getSignaturePolicyValidatorLoader, getSignatures, getTimestampedReferences, getTimestampReaders, getTokenIdentifierProvider, getValidationData, getValidationData, getValidationTime, instantiateValidationDataContainer, isTimestampCoveredByEvidenceRecord, prepareDetachedEvidenceRecordValidationContext, prepareDetachedTimestampValidationContext, prepareSignatureForVerification, prepareSignatureValidationContext, prepareValidationContext, processSignaturesValidation, setCertificateVerifier, setContainerContents, setDetachedContents, setDetachedEvidenceRecordDocuments, setDetachedEvidenceRecords, setManifestFile, setSignaturePolicyProvider, setSigningCertificateSource, setTokenIdentifierProvider, setValidationContextExecutor, setValidationTime, validate, validateContext, validateSignaturePolicy
-
Field Details
-
timestampType
The type of the timestamp -
timestampToken
The TimestampToken to be validated
-
-
Constructor Details
-
DetachedTimestampAnalyzer
The default constructor- Parameters:
timestampFile
-DSSDocument
timestamp document to validate
-
DetachedTimestampAnalyzer
The default constructor with a type- Parameters:
timestampFile
-DSSDocument
timestamp document to validatetimestampType
-TimestampType
-
-
Method Details
-
isSupported
Description copied from interface:DocumentAnalyzer
Checks if the document is supported by the current validator- Specified by:
isSupported
in interfaceDocumentAnalyzer
- Parameters:
dssDocument
-DSSDocument
to check- Returns:
- TRUE if the document is supported, FALSE otherwise
-
buildDetachedTimestamps
Description copied from class:DefaultDocumentAnalyzer
Builds a list of detachedTimestampToken
s extracted from the document- Overrides:
buildDetachedTimestamps
in classDefaultDocumentAnalyzer
- Returns:
- a list of
TimestampToken
s
-
getTimestamp
Description copied from interface:TimestampAnalyzer
Returns a single TimestampToken to be validated- Specified by:
getTimestamp
in interfaceTimestampAnalyzer
- Returns:
TimestampToken
-
createTimestampToken
This method creates a timestamp token from the validating document- Returns:
TimestampToken
-
setTimestampedData
Sets the data that has been timestamped- Parameters:
document
-DSSDocument
timestamped data
-
getTimestampedData
Description copied from interface:TimestampAnalyzer
Returns the timestamped data- Specified by:
getTimestampedData
in interfaceTimestampAnalyzer
- Returns:
DSSDocument
timestamped data
-
getTimestampScopes
Finds timestamp scopes- Parameters:
timestampToken
-TimestampToken
- Returns:
- a list of
SignatureScope
s
-
getOriginalDocuments
Description copied from interface:DocumentAnalyzer
This method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocuments
in interfaceDocumentAnalyzer
- Overrides:
getOriginalDocuments
in classDefaultDocumentAnalyzer
- Parameters:
signatureId
- the DSS ID of the signature to extract original signer data for- Returns:
- list of
DSSDocument
s
-
getOriginalDocuments
Description copied from interface:DocumentAnalyzer
This method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocuments
in interfaceDocumentAnalyzer
- Parameters:
advancedSignature
-AdvancedSignature
to find signer documents for- Returns:
- list of
DSSDocument
s
-