Module jpms_dss_spi
Class EncapsulatedTimestampScopeFinder
java.lang.Object
eu.europa.esig.dss.spi.validation.scope.AbstractSignatureScopeFinder
eu.europa.esig.dss.spi.validation.scope.EncapsulatedTimestampScopeFinder
- All Implemented Interfaces:
TimestampScopeFinder
public class EncapsulatedTimestampScopeFinder
extends AbstractSignatureScopeFinder
implements TimestampScopeFinder
This class is used to find a signature scope for an embedded timestamp
from a collection of
SignatureScope candidates, extracted from a signature-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdvancedSignatureAdvancedSignatureembedding the timestamp -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null signature -
Method Summary
Modifier and TypeMethodDescriptionprotected List<eu.europa.esig.dss.model.scope.SignatureScope> filterCoveredSignatureScopes(TimestampToken timestampToken) This method filters and returns coveredSignatureScopes by the current timestampList<eu.europa.esig.dss.model.scope.SignatureScope> findTimestampScope(TimestampToken timestampToken) This method returns a timestamp scope for the givenTimestampTokenvoidsetSignature(AdvancedSignature signature) This method sets an encapsulatingAdvancedSignatureMethods inherited from class eu.europa.esig.dss.spi.validation.scope.AbstractSignatureScopeFinder
createDigestDocument, createInMemoryDocument, isASiCEArchive, isASiCSArchive
-
Field Details
-
signature
AdvancedSignatureembedding the timestamp
-
-
Constructor Details
-
EncapsulatedTimestampScopeFinder
public EncapsulatedTimestampScopeFinder()Default constructor instantiating object with null signature
-
-
Method Details
-
setSignature
This method sets an encapsulatingAdvancedSignature- Parameters:
signature-AdvancedSignature
-
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
-
filterCoveredSignatureScopes
protected List<eu.europa.esig.dss.model.scope.SignatureScope> filterCoveredSignatureScopes(TimestampToken timestampToken) This method filters and returns coveredSignatureScopes by the current timestamp- Parameters:
timestampToken-TimestampToken- Returns:
- a list of
SignatureScopes
-