Interface TimestampSource

All Superinterfaces:
Serializable
All Known Implementing Classes:
SignatureTimestampSource

public interface TimestampSource extends Serializable
The interface for handling validation data extracted from timestamps
  • Method Details

    • getContentTimestamps

      List<TimestampToken> getContentTimestamps()
      Returns a list of incorporated content timestamps
      Returns:
      a list of TimestampTokens
    • getSignatureTimestamps

      List<TimestampToken> getSignatureTimestamps()
      Returns a list of incorporated signature timestamps
      Returns:
      a list of TimestampTokens
    • getTimestampsX1

      List<TimestampToken> getTimestampsX1()
      Returns a list of incorporated SigAndRefs timestamps
      Returns:
      a list of TimestampTokens
    • getTimestampsX2

      List<TimestampToken> getTimestampsX2()
      Returns a list of incorporated RefsOnly timestamps
      Returns:
      a list of TimestampTokens
    • getArchiveTimestamps

      List<TimestampToken> getArchiveTimestamps()
      Returns a list of incorporated archive timestamps
      Returns:
      a list of TimestampTokens
    • getDocumentTimestamps

      List<TimestampToken> getDocumentTimestamps()
      Returns a list of incorporated document timestamps (PAdES only)
      Returns:
      a list of TimestampTokens
    • getDetachedTimestamps

      List<TimestampToken> getDetachedTimestamps()
      Returns a list of detached timestamps (used in ASiC with CAdES)
      Returns:
      a list of TimestampTokens
    • getAllTimestamps

      List<TimestampToken> getAllTimestamps()
      Returns a list of all incorporated timestamps
      Returns:
      a list of TimestampTokens
    • addExternalTimestamp

      void addExternalTimestamp(TimestampToken timestamp)
      This method allows to add an external timestamp. The given timestamp must be processed before.
      Parameters:
      timestamp - TimestampToken the timestamp token
    • getTimestampCertificateSources

      ListCertificateSource getTimestampCertificateSources()
      Returns a merged ListCertificateSource of all embedded timestamp certificate sources
      Returns:
      ListCertificateSource
    • getTimestampCertificateSourcesExceptLastArchiveTimestamp

      ListCertificateSource getTimestampCertificateSourcesExceptLastArchiveTimestamp()
      Returns a merged ListCertificateSource of all embedded timestamp certificate sources except the latest Archive Timestamp
      Returns:
      ListCertificateSource
    • getAllTimestampsExceptLastArchiveTimestamp

      List<TimestampToken> getAllTimestampsExceptLastArchiveTimestamp()
      Returns a list of all TimestampTokens except the last archive timestamp
      Returns:
      a list of TimestampTokens
    • getTimestampCRLSources

      ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> getTimestampCRLSources()
      Returns a merged ListRevocationSource of all embedded timestamp CRL sources
      Returns:
      ListRevocationSource
    • getTimestampOCSPSources

      ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> getTimestampOCSPSources()
      Returns a merged ListRevocationSource of all embedded timestamp OCSP sources
      Returns:
      ListRevocationSource
    • getUnsignedPropertiesReferences

      List<TimestampedReference> getUnsignedPropertiesReferences()
      Returns a list of TimestampedReferences for all tokens embedded into unsigned properties of the signature
      Returns:
      a list of TimestampedReferences
    • getSignerDataReferences

      List<TimestampedReference> getSignerDataReferences()
      Returns a list of TimestampedReferences obtained from the signatureScopes
      Returns:
      list of TimestampedReferences
    • isTimestamped

      boolean isTimestamped(String tokenId, eu.europa.esig.dss.enumerations.TimestampedObjectType objectType)
      Checks if a tokenId with the given Id is covered by the timestamp source
      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