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
FieldsModifier and TypeFieldDescriptionprotected TimestampTokenThe TimestampToken to be validatedprotected TimestampTypeThe type of the timestampFields inherited from class eu.europa.esig.dss.spi.validation.analyzer.DefaultDocumentAnalyzer
certificateVerifier, containerContents, detachedContents, detachedEvidenceRecordDocuments, document, manifestFile, signingCertificateSource -
Constructor Summary
ConstructorsConstructorDescriptionDetachedTimestampAnalyzer(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 detachedTimestampTokens extracted from the documentprotected TimestampTokenThis 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 scopesbooleanisSupported(DSSDocument dssDocument) Checks if the document is supported by the current validatorvoidsetTimestampedData(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-DSSDocumenttimestamp document to validate
-
DetachedTimestampAnalyzer
The default constructor with a type- Parameters:
timestampFile-DSSDocumenttimestamp document to validatetimestampType-TimestampType
-
-
Method Details
-
isSupported
Description copied from interface:DocumentAnalyzerChecks if the document is supported by the current validator- Specified by:
isSupportedin interfaceDocumentAnalyzer- Parameters:
dssDocument-DSSDocumentto check- Returns:
- TRUE if the document is supported, FALSE otherwise
-
buildDetachedTimestamps
Description copied from class:DefaultDocumentAnalyzerBuilds a list of detachedTimestampTokens extracted from the document- Overrides:
buildDetachedTimestampsin classDefaultDocumentAnalyzer- Returns:
- a list of
TimestampTokens
-
getTimestamp
Description copied from interface:TimestampAnalyzerReturns a single TimestampToken to be validated- Specified by:
getTimestampin 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-DSSDocumenttimestamped data
-
getTimestampedData
Description copied from interface:TimestampAnalyzerReturns the timestamped data- Specified by:
getTimestampedDatain interfaceTimestampAnalyzer- Returns:
DSSDocumenttimestamped data
-
getTimestampScopes
Finds timestamp scopes- Parameters:
timestampToken-TimestampToken- Returns:
- a list of
SignatureScopes
-
getOriginalDocuments
Description copied from interface:DocumentAnalyzerThis method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocumentsin interfaceDocumentAnalyzer- Overrides:
getOriginalDocumentsin classDefaultDocumentAnalyzer- Parameters:
signatureId- the DSS ID of the signature to extract original signer data for- Returns:
- list of
DSSDocuments
-
getOriginalDocuments
Description copied from interface:DocumentAnalyzerThis method returns the signed document(s) without their signature(s)- Specified by:
getOriginalDocumentsin interfaceDocumentAnalyzer- Parameters:
advancedSignature-AdvancedSignatureto find signer documents for- Returns:
- list of
DSSDocuments
-