Module jpms_dss_spi
Class DetachedTimestampScopeFinder
java.lang.Object
eu.europa.esig.dss.spi.validation.scope.AbstractSignatureScopeFinder
eu.europa.esig.dss.spi.validation.scope.DetachedTimestampScopeFinder
- All Implemented Interfaces:
TimestampScopeFinder
public class DetachedTimestampScopeFinder
extends AbstractSignatureScopeFinder
implements TimestampScopeFinder
This class finds a timestamp scope for a detached timestamp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected eu.europa.esig.dss.model.DSSDocumentThe data used to for message-imprint computation of a timestamp token -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null timestamped data document -
Method Summary
Modifier and TypeMethodDescriptionList<eu.europa.esig.dss.model.scope.SignatureScope> findTimestampScope(TimestampToken timestampToken) This method returns a timestamp scope for the givenTimestampTokenprotected List<eu.europa.esig.dss.model.scope.SignatureScope> getTimestampSignatureScopeForDocument(eu.europa.esig.dss.model.DSSDocument document) Returns a timestampedSignatureScopefor the given documentvoidsetTimestampedData(eu.europa.esig.dss.model.DSSDocument timestampedData) Sets the timestamped dataMethods inherited from class eu.europa.esig.dss.spi.validation.scope.AbstractSignatureScopeFinder
createDigestDocument, createInMemoryDocument, isASiCEArchive, isASiCSArchive
-
Field Details
-
timestampedData
protected eu.europa.esig.dss.model.DSSDocument timestampedDataThe data used to for message-imprint computation of a timestamp token
-
-
Constructor Details
-
DetachedTimestampScopeFinder
public DetachedTimestampScopeFinder()Default constructor instantiating object with null timestamped data document
-
-
Method Details
-
setTimestampedData
public void setTimestampedData(eu.europa.esig.dss.model.DSSDocument timestampedData) Sets the timestamped data- Parameters:
timestampedData-DSSDocument
-
findTimestampScope
public List<eu.europa.esig.dss.model.scope.SignatureScope> findTimestampScope(TimestampToken timestampToken) Description copied from interface:TimestampScopeFinderThis method returns a timestamp scope for the givenTimestampToken- Specified by:
findTimestampScopein interfaceTimestampScopeFinder- Parameters:
timestampToken-TimestampTokento get signature scope for- Returns:
- a list of
SignatureScopes
-
getTimestampSignatureScopeForDocument
protected List<eu.europa.esig.dss.model.scope.SignatureScope> getTimestampSignatureScopeForDocument(eu.europa.esig.dss.model.DSSDocument document) Returns a timestampedSignatureScopefor the given document- Parameters:
document-DSSDocumentto get a signature scope for- Returns:
- a list of
SignatureScopes
-