Class SignatureTimestampSource<AS extends AdvancedSignature,​SA extends SignatureAttribute>

java.lang.Object
eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
eu.europa.esig.dss.validation.timestamp.SignatureTimestampSource<AS,​SA>
Type Parameters:
AS - AdvancedSignature implementation
SA - the corresponding SignatureAttribute
All Implemented Interfaces:
TimestampSource, Serializable
Direct Known Subclasses:
CAdESTimestampSource, JAdESTimestampSource, XAdESTimestampSource

public abstract class SignatureTimestampSource<AS extends AdvancedSignature,​SA extends SignatureAttribute>
extends AbstractTimestampSource
implements TimestampSource
The timestamp source of a signature
See Also:
Serialized Form
  • Field Details

    • signature

      protected final AS extends AdvancedSignature signature
      The signature is being validated
    • crlSource

      protected ListRevocationSource<CRL> crlSource
      CRL revocation source containing merged data from signature and timestamps
    • ocspSource

      protected ListRevocationSource<OCSP> ocspSource
      OCSP revocation source containing merged data from signature and timestamps
    • certificateSource

      protected ListCertificateSource certificateSource
      CertificateSource containing merged data from signature and timestamps
    • contentTimestamps

      protected List<TimestampToken> contentTimestamps
      Enclosed content timestamps.
    • signatureTimestamps

      protected List<TimestampToken> signatureTimestamps
      Enclosed signature timestamps.
    • sigAndRefsTimestamps

      protected List<TimestampToken> sigAndRefsTimestamps
      Enclosed SignAndRefs timestamps.
    • refsOnlyTimestamps

      protected List<TimestampToken> refsOnlyTimestamps
      Enclosed RefsOnly timestamps.
    • archiveTimestamps

      protected List<TimestampToken> archiveTimestamps
      This variable contains the list of enclosed archive signature timestamps.
    • unsignedPropertiesReferences

      protected List<TimestampedReference> unsignedPropertiesReferences
      A list of all TimestampedReferences extracted from a signature
  • Constructor Details

    • SignatureTimestampSource

      protected SignatureTimestampSource​(AS signature)
      Default constructor
      Parameters:
      signature - AdvancedSignature is being validated
  • Method Details

    • getContentTimestamps

      public List<TimestampToken> getContentTimestamps()
      Description copied from interface: TimestampSource
      Returns a list of incorporated content timestamps
      Specified by:
      getContentTimestamps in interface TimestampSource
      Returns:
      a list of TimestampTokens
    • getSignatureTimestamps

      public List<TimestampToken> getSignatureTimestamps()
      Description copied from interface: TimestampSource
      Returns a list of incorporated signature timestamps
      Specified by:
      getSignatureTimestamps in interface TimestampSource
      Returns:
      a list of TimestampTokens
    • getTimestampsX1

      public List<TimestampToken> getTimestampsX1()
      Description copied from interface: TimestampSource
      Returns a list of incorporated SigAndRefs timestamps
      Specified by:
      getTimestampsX1 in interface TimestampSource
      Returns:
      a list of TimestampTokens
    • getTimestampsX2

      public List<TimestampToken> getTimestampsX2()
      Description copied from interface: TimestampSource
      Returns a list of incorporated RefsOnly timestamps
      Specified by:
      getTimestampsX2 in interface TimestampSource
      Returns:
      a list of TimestampTokens
    • getArchiveTimestamps

      public List<TimestampToken> getArchiveTimestamps()
      Description copied from interface: TimestampSource
      Returns a list of incorporated archive timestamps
      Specified by:
      getArchiveTimestamps in interface TimestampSource
      Returns:
      a list of TimestampTokens
    • getDocumentTimestamps

      public List<TimestampToken> getDocumentTimestamps()
      Description copied from interface: TimestampSource
      Returns a list of incorporated document timestamps (PAdES only)
      Specified by:
      getDocumentTimestamps in interface TimestampSource
      Returns:
      a list of TimestampTokens
    • getAllTimestamps

      public List<TimestampToken> getAllTimestamps()
      Description copied from interface: TimestampSource
      Returns a list of all incorporated timestamps
      Specified by:
      getAllTimestamps in interface TimestampSource
      Returns:
      a list of TimestampTokens
    • getTimestampCertificateSources

      public ListCertificateSource getTimestampCertificateSources()
      Description copied from interface: TimestampSource
      Returns a merged ListCertificateSource of all embedded timestamp certificate sources
      Specified by:
      getTimestampCertificateSources in interface TimestampSource
      Returns:
      ListCertificateSource
    • getTimestampCertificateSourcesExceptLastArchiveTimestamp

      public ListCertificateSource getTimestampCertificateSourcesExceptLastArchiveTimestamp()
      Description copied from interface: TimestampSource
      Returns a merged ListCertificateSource of all embedded timestamp certificate sources except the latest Archive Timestamp
      Specified by:
      getTimestampCertificateSourcesExceptLastArchiveTimestamp in interface TimestampSource
      Returns:
      ListCertificateSource
    • getTimestampCRLSources

      public ListRevocationSource<CRL> getTimestampCRLSources()
      Description copied from interface: TimestampSource
      Returns a merged ListRevocationSource of all embedded timestamp CRL sources
      Specified by:
      getTimestampCRLSources in interface TimestampSource
      Returns:
      ListRevocationSource
    • getTimestampOCSPSources

      public ListRevocationSource<OCSP> getTimestampOCSPSources()
      Description copied from interface: TimestampSource
      Returns a merged ListRevocationSource of all embedded timestamp OCSP sources
      Specified by:
      getTimestampOCSPSources in interface TimestampSource
      Returns:
      ListRevocationSource
    • getUnsignedPropertiesReferences

      public List<TimestampedReference> getUnsignedPropertiesReferences()
      Description copied from interface: TimestampSource
      Returns a list of TimestampedReferences for all tokens embedded into unsigned properties of the signature
      Specified by:
      getUnsignedPropertiesReferences in interface TimestampSource
      Returns:
      a list of TimestampedReferences
    • createAndValidate

      protected void createAndValidate()
      Creates and validates all timestamps Must be called only once
    • addExternalTimestamp

      public void addExternalTimestamp​(TimestampToken timestamp)
      Description copied from interface: TimestampSource
      This method allows to add an external timestamp. The given timestamp must be processed before.
      Specified by:
      addExternalTimestamp in interface TimestampSource
      Parameters:
      timestamp - TimestampToken the timestamp token
    • makeTimestampTokens

      protected void makeTimestampTokens()
      Populates all the lists by data found into the signature
    • makeTimestampTokensFromSignedAttributes

      protected void makeTimestampTokensFromSignedAttributes()
      Creates TimestampTokens from all instances extracted from signed attributes (content TSTs)
    • makeTimestampTokensFromUnsignedAttributes

      protected void makeTimestampTokensFromUnsignedAttributes()
      Creates TimestampTokens from found instances in unsigned properties
    • getSignedSignatureProperties

      protected SignatureProperties<SA> getSignedSignatureProperties()
      Returns the 'signed-signature-properties' element of the signature
      Returns:
      SignatureProperties
    • buildSignedSignatureProperties

      protected abstract SignatureProperties<SA> buildSignedSignatureProperties()
      Creates the 'signed-signature-properties' element of the signature
      Returns:
      SignatureProperties
    • getUnsignedSignatureProperties

      protected SignatureProperties<SA> getUnsignedSignatureProperties()
      Returns the 'unsigned-signature-properties' element of the signature
      Returns:
      SignatureProperties
    • buildUnsignedSignatureProperties

      protected abstract SignatureProperties<SA> buildUnsignedSignatureProperties()
      Creates the 'unsigned-signature-properties' element of the signature
      Returns:
      SignatureProperties
    • isContentTimestamp

      protected abstract boolean isContentTimestamp​(SA signedAttribute)
      Determines if the given signedAttribute is an instance of "content-timestamp" element NOTE: Applicable only for CAdES
      Parameters:
      signedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Data Objects Timestamp, FALSE otherwise
    • isAllDataObjectsTimestamp

      protected abstract boolean isAllDataObjectsTimestamp​(SA signedAttribute)
      Determines if the given signedAttribute is an instance of "data-objects-timestamp" element NOTE: Applicable only for XAdES
      Parameters:
      signedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Data Objects Timestamp, FALSE otherwise
    • isIndividualDataObjectsTimestamp

      protected abstract boolean isIndividualDataObjectsTimestamp​(SA signedAttribute)
      Determines if the given signedAttribute is an instance of "individual-data-objects-timestamp" element NOTE: Applicable only for XAdES
      Parameters:
      signedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Data Objects Timestamp, FALSE otherwise
    • isSignatureTimestamp

      protected abstract boolean isSignatureTimestamp​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "signature-timestamp" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Signature Timestamp, FALSE otherwise
    • isCompleteCertificateRef

      protected abstract boolean isCompleteCertificateRef​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "complete-certificate-ref" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Complete Certificate Ref, FALSE otherwise
    • isAttributeCertificateRef

      protected abstract boolean isAttributeCertificateRef​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "attribute-certificate-ref" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is an Attribute Certificate Ref, FALSE otherwise
    • isCompleteRevocationRef

      protected abstract boolean isCompleteRevocationRef​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "complete-revocation-ref" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Complete Revocation Ref, FALSE otherwise
    • isAttributeRevocationRef

      protected abstract boolean isAttributeRevocationRef​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "attribute-revocation-ref" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is an Attribute Revocation Ref, FALSE otherwise
    • isRefsOnlyTimestamp

      protected abstract boolean isRefsOnlyTimestamp​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "refs-only-timestamp" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Refs Only TimeStamp, FALSE otherwise
    • isSigAndRefsTimestamp

      protected abstract boolean isSigAndRefsTimestamp​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "sig-and-refs-timestamp" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Sig And Refs TimeStamp, FALSE otherwise
    • isCertificateValues

      protected abstract boolean isCertificateValues​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "certificate-values" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Certificate Values, FALSE otherwise
    • isRevocationValues

      protected abstract boolean isRevocationValues​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "revocation-values" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is a Revocation Values, FALSE otherwise
    • isAttrAuthoritiesCertValues

      protected abstract boolean isAttrAuthoritiesCertValues​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "AttrAuthoritiesCertValues" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is an AttrAuthoritiesCertValues, FALSE otherwise
    • isAttributeRevocationValues

      protected abstract boolean isAttributeRevocationValues​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "AttributeRevocationValues" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is an AttributeRevocationValues, FALSE otherwise
    • isArchiveTimestamp

      protected abstract boolean isArchiveTimestamp​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "archive-timestamp" element
      Parameters:
      unsignedAttribute - SignatureAttribute to process
      Returns:
      TRUE if the unsignedAttribute is an Archive TimeStamp, FALSE otherwise
    • isTimeStampValidationData

      protected abstract boolean isTimeStampValidationData​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "timestamp-validation-data" element
      Parameters:
      unsignedAttribute - SignatureTimestampSource to process
      Returns:
      TRUE if the unsignedAttribute is a TimeStamp Validation Data, FALSE otherwise
    • isCounterSignature

      protected abstract boolean isCounterSignature​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "counter-signature" element
      Parameters:
      unsignedAttribute - SignatureTimestampSource to process
      Returns:
      TRUE if the unsignedAttribute is a Counter signature, FALSE otherwise
    • isSignaturePolicyStore

      protected abstract boolean isSignaturePolicyStore​(SA unsignedAttribute)
      Determines if the given unsignedAttribute is an instance of "signature-policy-store" element
      Parameters:
      unsignedAttribute - SignatureTimestampSource to process
      Returns:
      TRUE if the unsignedAttribute is a Counter signature, FALSE otherwise
    • makeTimestampToken

      protected abstract TimestampToken makeTimestampToken​(SA signatureAttribute, TimestampType timestampType, List<TimestampedReference> references)
      Creates a timestamp token from the provided signatureAttribute
      Parameters:
      signatureAttribute - SignatureAttribute to create timestamp from
      timestampType - a target TimestampType
      references - list of TimestampedReferences covered by the current timestamp
      Returns:
      TimestampToken
    • makeTimestampTokens

      protected List<TimestampToken> makeTimestampTokens​(SA signatureAttribute, TimestampType timestampType, List<TimestampedReference> references)
      Creates timestamp tokens from the provided signatureAttribute
      Parameters:
      signatureAttribute - SignatureAttribute to create timestamp from
      timestampType - a target TimestampType
      references - list of TimestampedReferences covered by the current timestamp
      Returns:
      a list of TimestampTokens
    • getSignerDataReferences

      public List<TimestampedReference> getSignerDataReferences()
      Description copied from interface: TimestampSource
      Returns a list of TimestampedReferences obtained from the signatureScopes
      Specified by:
      getSignerDataReferences in interface TimestampSource
      Returns:
      list of TimestampedReferences
    • getIndividualContentTimestampedReferences

      protected abstract List<TimestampedReference> getIndividualContentTimestampedReferences​(SA signedAttribute)
      Returns a list of TimestampedReferences for an "individual-data-objects-timestamp" NOTE: Used only in XAdES
      Parameters:
      signedAttribute - SignatureTimestampSource
      Returns:
      a list of TimestampedReferences
    • getSignatureTimestampReferences

      public List<TimestampedReference> getSignatureTimestampReferences()
      Returns a list of TimestampedReference for a "signature-timestamp" element
      Returns:
      list of TimestampedReferences
    • getSigningCertificateTimestampReferences

      protected List<TimestampedReference> getSigningCertificateTimestampReferences()
      Returns a list of TimestampedReferences created from signing certificates of the signature
      Returns:
      list of TimestampedReferences
    • getTimestampedCertificateRefs

      protected List<TimestampedReference> getTimestampedCertificateRefs​(SA unsignedAttribute)
      Returns a list of TimestampedReference certificate refs found in the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to find references from
      Returns:
      list of TimestampedReferences
    • getTimestampedCertificateRefs

      protected List<TimestampedReference> getTimestampedCertificateRefs​(Collection<CertificateRef> certificateRefs, ListCertificateSource listCertificateSource)
      Returns a list of timestamped references from the given collection of certificateRefs
      Parameters:
      certificateRefs - a collection of CertificateRefs to get timestamped references from
      listCertificateSource - ListCertificateSource to find certificate binaries from if present
      Returns:
      a list of TimestampedReferences
    • getCertificateRefs

      protected abstract List<CertificateRef> getCertificateRefs​(SA unsignedAttribute)
      Returns a list of CertificateRefs from the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to get certRefs from
      Returns:
      list of CertificateRefs
    • getTimestampedRevocationRefs

      protected List<TimestampedReference> getTimestampedRevocationRefs​(SA unsignedAttribute)
      Returns a list of TimestampedReference revocation refs found in the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to find references from
      Returns:
      list of TimestampedReferences
    • getTimestampedCRLRefs

      protected List<TimestampedReference> getTimestampedCRLRefs​(Collection<? extends RevocationRef<CRL>> crlRefs, ListRevocationSource<CRL> crlRevocationSource)
      Returns a list of timestamped references from the given collection of crlRefs
      Parameters:
      crlRefs - a collection of CRLRefs to get timestamped references from
      crlRevocationSource - ListRevocationSource to find CRL binaries from if present
      Returns:
      a list of TimestampedReferences
    • getTimestampedOCSPRefs

      protected List<TimestampedReference> getTimestampedOCSPRefs​(Collection<? extends RevocationRef<OCSP>> ocspRefs, ListRevocationSource<OCSP> ocspRevocationSource)
      Returns a list of timestamped references from the given collection of ocspRefs
      Parameters:
      ocspRefs - a collection of OCSPRefs to get timestamped references from
      ocspRevocationSource - ListRevocationSource to find OCSP binaries from if present
      Returns:
      a list of TimestampedReferences
    • getCRLRefs

      protected abstract List<CRLRef> getCRLRefs​(SA unsignedAttribute)
      Returns a list of CRL revocation refs from the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to get CRLRef
      Returns:
      list of CRLRefs
    • getOCSPRefs

      protected abstract List<OCSPRef> getOCSPRefs​(SA unsignedAttribute)
      Returns a list of OCSP revocation refs from the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to get OCSPRefs from
      Returns:
      list of OCSPRefs
    • getTimestampedCertificateValues

      protected List<TimestampedReference> getTimestampedCertificateValues​(SA unsignedAttribute)
      Returns a list of TimestampedReferences from the unsignedAttribute containing certificate values
      Parameters:
      unsignedAttribute - SignatureTimestampSource to extract certificate values from
      Returns:
      a list of TimestampedReferences
    • getEncapsulatedCertificateIdentifiers

      protected abstract List<Identifier> getEncapsulatedCertificateIdentifiers​(SA unsignedAttribute)
      Returns a list of Identifiers obtained from the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to get certificate identifiers from
      Returns:
      list of Identifiers
    • getTimestampedRevocationValues

      protected List<TimestampedReference> getTimestampedRevocationValues​(SA unsignedAttribute)
      Returns a list of timestamped revocation references extracted from the given unsigned attribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource containing revocation data
      Returns:
      a list of TimestampedReferences
    • getEncapsulatedCRLIdentifiers

      protected abstract List<Identifier> getEncapsulatedCRLIdentifiers​(SA unsignedAttribute)
      Returns a list of Identifiers obtained from the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to get CRL identifiers from
      Returns:
      list of Identifiers
    • getEncapsulatedOCSPIdentifiers

      protected abstract List<Identifier> getEncapsulatedOCSPIdentifiers​(SA unsignedAttribute)
      Returns a list of Identifiers obtained from the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to get OCSP identifiers from
      Returns:
      list of Identifiers
    • getArchiveTimestampInitialReferences

      protected List<TimestampedReference> getArchiveTimestampInitialReferences​(SA unsignedAttribute, List<TimestampToken> previousTimestamps)
      Returns a list of TimestampedReferences that has been extracted from previously incorporated signed and unsigned elements
      Parameters:
      unsignedAttribute - SignatureTimestampSource representing a timestamp
      previousTimestamps - a list of previously created TimestampToken
      Returns:
      a list of TimestampedReferences
    • incorporateArchiveTimestampReferences

      protected void incorporateArchiveTimestampReferences​(TimestampToken timestampToken, List<TimestampToken> previousTimestamps)
      The method incorporates all the timestamped references for the given archive timestampToken
      Parameters:
      timestampToken - TimestampToken representing an Archive TST to add references into
      previousTimestamps - a list of previously created TimestampTokens
    • getArchiveTimestampOtherReferences

      protected abstract List<TimestampedReference> getArchiveTimestampOtherReferences​(TimestampToken timestampToken)
      Returns a list of TimestampedReferences for the given archive timestampToken that cannot be extracted from signature attributes (signed or unsigned), depending on its format (signedData for CAdES or, keyInfo for XAdES)
      Parameters:
      timestampToken - TimestampToken to get archive timestamp references for
      Returns:
      list of TimestampedReferences
    • getSignatureSignedDataReferences

      protected List<TimestampedReference> getSignatureSignedDataReferences()
      Returns a list of all TimestampedReferences found into CMS SignedData of the signature NOTE: used only in ASiC-E CAdES
      Returns:
      list of TimestampedReferences
    • getTimestampValidationData

      protected List<TimestampedReference> getTimestampValidationData​(SA unsignedAttribute)
      Returns a list of TimestampedReferences encapsulated to the "timestamp-validation-data" unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to get timestamped references from
      Returns:
      list of TimestampedReferences
    • getCounterSignaturesReferences

      protected List<TimestampedReference> getCounterSignaturesReferences​(List<AdvancedSignature> counterSignatures)
      Returns a list of TimestampedReferences encapsulated from the list of counter signatures
      Parameters:
      counterSignatures - a list of AdvancedSignature to get timestamped references from
      Returns:
      list of TimestampedReferences
    • getCounterSignatureReferences

      protected List<TimestampedReference> getCounterSignatureReferences​(AdvancedSignature counterSignature)
      Returns a list of references extracted from a coutner signature
      Parameters:
      counterSignature - AdvancedSignature representing a counter signature
      Returns:
      a list of TimestampedReferences
    • getCounterSignatures

      protected abstract List<AdvancedSignature> getCounterSignatures​(SA unsignedAttribute)
      Extracts Counter Signatures from the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource containing counter signatures
      Returns:
      a list of AdvancedSignature containing counter signatures
    • getArchiveTimestampType

      protected abstract ArchiveTimestampType getArchiveTimestampType​(SA unsignedAttribute)
      Returns ArchiveTimestampType for the given unsignedAttribute
      Parameters:
      unsignedAttribute - SignatureTimestampSource to get archive timestamp type for
      Returns:
      ArchiveTimestampType
    • validateTimestamps

      protected void validateTimestamps()
      Validates list of all timestamps present in the source
    • getTimestampDataBuilder

      protected abstract TimestampDataBuilder getTimestampDataBuilder()
      Returns a related TimestampDataBuilder
      Returns:
      TimestampDataBuilder
    • populateSources

      protected void populateSources​(List<TimestampToken> timestampTokens)
      Allows to populate all merged sources with extracted from a timestamp data
      Parameters:
      timestampTokens - a list of TimestampTokens to populate data from
    • populateSources

      protected void populateSources​(TimestampToken timestampToken)
      Allows to populate all merged sources with extracted from a timestamp data
      Parameters:
      timestampToken - TimestampToken to populate data from
    • isTimestamped

      public boolean isTimestamped​(String tokenId, TimestampedObjectType objectType)
      Description copied from interface: TimestampSource
      Checks if a tokenId with the given Id is covered by the timestamp source
      Specified by:
      isTimestamped in interface TimestampSource
      Parameters:
      tokenId - String Id of the token to check
      objectType - TimestampedObjectType defining the type of the token
      Returns:
      TRUE if the token if covered by the timestamp source, FALSE otherwise