Class EncapsulatedTimestampScopeFinder
java.lang.Object
eu.europa.esig.dss.validation.scope.AbstractSignatureScopeFinder
eu.europa.esig.dss.validation.scope.EncapsulatedTimestampScopeFinder
- All Implemented Interfaces:
TimestampScopeFinder
- Direct Known Subclasses:
XAdESTimestampScopeFinder
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<SignatureScope>filterCoveredSignatureScopes(TimestampToken timestampToken) This method filters and returns coveredSignatureScopes by the current timestampfindTimestampScope(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.validation.scope.AbstractSignatureScopeFinder
getDefaultDigestAlgorithm, getDigest, getDigest, getTokenIdentifierProvider, isASiCEArchive, isASiCSArchive, setDefaultDigestAlgorithm, setTokenIdentifierProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.europa.esig.dss.validation.scope.TimestampScopeFinder
setDefaultDigestAlgorithm
-
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
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
This method filters and returns coveredSignatureScopes by the current timestamp- Parameters:
timestampToken-TimestampToken- Returns:
- a list of
SignatureScopes
-