Class AbstractTimestampSource

java.lang.Object
eu.europa.esig.dss.validation.timestamp.AbstractTimestampSource
Direct Known Subclasses:
DetachedTimestampSource, SignatureTimestampSource

public abstract class AbstractTimestampSource extends Object
Contains a set of TimestampTokens found in a DefaultAdvancedSignature object
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addReference(List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> referenceList, eu.europa.esig.dss.model.identifier.Identifier identifier, eu.europa.esig.dss.enumerations.TimestampedObjectType category)
    Adds a reference for the given identifier and category
    protected void
    addReference(List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> referenceList, eu.europa.esig.dss.spi.x509.tsp.TimestampedReference referenceToAdd)
    Adds referenceToAdd to referenceList without duplicates
    protected void
    addReferences(List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> referenceList, List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> referencesToAdd)
    Adds referencesToAdd to referenceList without duplicates
    protected eu.europa.esig.dss.spi.x509.tsp.TimestampedReference
    createReferenceForCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
    Creates a TimestampedReference for the provided CertificateToken
    protected eu.europa.esig.dss.spi.x509.tsp.TimestampedReference
    createReferenceForIdentifier(eu.europa.esig.dss.model.identifier.Identifier identifier, eu.europa.esig.dss.enumerations.TimestampedObjectType timestampedObjectType)
    Creates a TimestampedReference for the given identifier
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    createReferencesForCertificateRefs(Collection<eu.europa.esig.dss.spi.x509.CertificateRef> certificateRefs, eu.europa.esig.dss.spi.x509.CertificateSource currentCertificateSource, eu.europa.esig.dss.spi.x509.ListCertificateSource listCertificateSource)
    Returns a list of timestamped references from the given collection of certificateRefs
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    createReferencesForCertificates(Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificates)
    Creates a list of TimestampedReferences for the provided list of certificates
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    createReferencesForCRLBinaries(Collection<? extends eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.crl.CRL>> crlBinaryIdentifiers)
    Creates a list of TimestampedReferences from a collection of CRLBinarys
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    createReferencesForCRLRefs(Collection<? extends eu.europa.esig.dss.spi.x509.revocation.RevocationRef<eu.europa.esig.dss.model.x509.revocation.crl.CRL>> crlRefs, eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> currentCRLSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> listCRLSource)
    Returns a list of timestamped references from the given collection of crlRefs
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    createReferencesForIdentifiers(Collection<? extends eu.europa.esig.dss.model.identifier.Identifier> identifiers, eu.europa.esig.dss.enumerations.TimestampedObjectType timestampedObjectType)
    Creates a list of TimestampedReferences from the identifiers of a given type
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    createReferencesForOCSPBinaries(Collection<? extends eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> ocspBinaryIdentifiers, eu.europa.esig.dss.spi.x509.ListCertificateSource certificateSource)
    Creates a list of TimestampedReferences from a collection of OCSPResponseBinarys
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    createReferencesForOCSPBinary(eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPResponseBinary ocspResponseBinary, eu.europa.esig.dss.spi.x509.ListCertificateSource certificateSource)
    Creates a list of TimestampedReferences for a OCSPResponseBinary
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    createReferencesForOCSPRefs(Collection<? extends eu.europa.esig.dss.spi.x509.revocation.RevocationRef<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> ocspRefs, eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> currentOCSPSource, eu.europa.esig.dss.spi.x509.ListCertificateSource listCertificateSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> listOCSPSource)
    Returns a list of timestamped references from the given collection of ocspRefs
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    getEncapsulatedValuesFromTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampedTimestamp, eu.europa.esig.dss.spi.x509.ListCertificateSource certificateSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> crlSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> ocspSource)
    Gets a list of all validation data embedded to the timestampedTimestamp
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    getReferencesFromTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken, eu.europa.esig.dss.spi.x509.ListCertificateSource certificateSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> crlSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> ocspSource)
    Incorporates all references from the given timestampToken
    protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference>
    getSignerDataTimestampedReferences(List<eu.europa.esig.dss.model.scope.SignatureScope> signatureScopes)
    Creates a list of TimestampedReferences from a given list of SignatureScopes

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractTimestampSource

      protected AbstractTimestampSource()
      Default constructor
  • Method Details

    • addReference

      protected void addReference(List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> referenceList, eu.europa.esig.dss.spi.x509.tsp.TimestampedReference referenceToAdd)
      Adds referenceToAdd to referenceList without duplicates
      Parameters:
      referenceList - - list of TimestampedReferences to be extended
      referenceToAdd - - TimestampedReference to be added
    • addReference

      protected void addReference(List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> referenceList, eu.europa.esig.dss.model.identifier.Identifier identifier, eu.europa.esig.dss.enumerations.TimestampedObjectType category)
      Adds a reference for the given identifier and category
      Parameters:
      referenceList - - list of TimestampedReferences to be extended
      identifier - - Identifier to be added
      category - - TimestampedObjectType to be added
    • addReferences

      protected void addReferences(List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> referenceList, List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> referencesToAdd)
      Adds referencesToAdd to referenceList without duplicates
      Parameters:
      referenceList - - list of TimestampedReferences to be extended
      referencesToAdd - - TimestampedReferences to be added
    • getReferencesFromTimestamp

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> getReferencesFromTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampToken, eu.europa.esig.dss.spi.x509.ListCertificateSource certificateSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> crlSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> ocspSource)
      Incorporates all references from the given timestampToken
      Parameters:
      timestampToken - a TimestampToken to extract values from
      certificateSource - ListCertificateSource merged certificate source
      crlSource - ListRevocationSource merged CRL source
      ocspSource - ListRevocationSource merged OCSP source
      Returns:
      a list of TimestampedReferences
    • getEncapsulatedValuesFromTimestamp

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> getEncapsulatedValuesFromTimestamp(eu.europa.esig.dss.spi.x509.tsp.TimestampToken timestampedTimestamp, eu.europa.esig.dss.spi.x509.ListCertificateSource certificateSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> crlSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> ocspSource)
      Gets a list of all validation data embedded to the timestampedTimestamp
      Parameters:
      timestampedTimestamp - TimestampToken to extract embedded values from
      certificateSource - ListCertificateSource merged certificate source
      crlSource - ListRevocationSource merged CRL source
      ocspSource - ListRevocationSource merged OCSP source
      Returns:
      list of TimestampedReferences
    • getSignerDataTimestampedReferences

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> getSignerDataTimestampedReferences(List<eu.europa.esig.dss.model.scope.SignatureScope> signatureScopes)
      Creates a list of TimestampedReferences from a given list of SignatureScopes
      Parameters:
      signatureScopes - a list of SignatureScope to create TimestampedReferences for
      Returns:
      a list of TimestampedReferences
    • createReferencesForCertificates

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> createReferencesForCertificates(Collection<eu.europa.esig.dss.model.x509.CertificateToken> certificates)
      Creates a list of TimestampedReferences for the provided list of certificates
      Parameters:
      certificates - collection of CertificateTokens
      Returns:
      list of TimestampedReferences
    • createReferenceForCertificate

      protected eu.europa.esig.dss.spi.x509.tsp.TimestampedReference createReferenceForCertificate(eu.europa.esig.dss.model.x509.CertificateToken certificateToken)
      Creates a TimestampedReference for the provided CertificateToken
      Parameters:
      certificateToken - CertificateToken
      Returns:
      TimestampedReference
    • createReferencesForIdentifiers

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> createReferencesForIdentifiers(Collection<? extends eu.europa.esig.dss.model.identifier.Identifier> identifiers, eu.europa.esig.dss.enumerations.TimestampedObjectType timestampedObjectType)
      Creates a list of TimestampedReferences from the identifiers of a given type
      Parameters:
      identifiers - a collection of Identifiers
      timestampedObjectType - TimestampedObjectType to create references with
      Returns:
      a list of TimestampedReferences
    • createReferenceForIdentifier

      protected eu.europa.esig.dss.spi.x509.tsp.TimestampedReference createReferenceForIdentifier(eu.europa.esig.dss.model.identifier.Identifier identifier, eu.europa.esig.dss.enumerations.TimestampedObjectType timestampedObjectType)
      Creates a TimestampedReference for the given identifier
      Parameters:
      identifier - Identifier to create a timestamped reference from
      timestampedObjectType - TimestampedObjectType the target timestamped reference type
      Returns:
      TimestampedReference
    • createReferencesForCRLBinaries

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> createReferencesForCRLBinaries(Collection<? extends eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.crl.CRL>> crlBinaryIdentifiers)
      Creates a list of TimestampedReferences from a collection of CRLBinarys
      Parameters:
      crlBinaryIdentifiers - a collection of EncapsulatedRevocationTokenIdentifiers
      Returns:
      a list of link TimestampedReferences
    • createReferencesForOCSPBinaries

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> createReferencesForOCSPBinaries(Collection<? extends eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> ocspBinaryIdentifiers, eu.europa.esig.dss.spi.x509.ListCertificateSource certificateSource)
      Creates a list of TimestampedReferences from a collection of OCSPResponseBinarys
      Parameters:
      ocspBinaryIdentifiers - a collection of EncapsulatedRevocationTokenIdentifiers
      certificateSource - ListCertificateSource
      Returns:
      a list of link TimestampedReferences
    • createReferencesForOCSPBinary

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> createReferencesForOCSPBinary(eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPResponseBinary ocspResponseBinary, eu.europa.esig.dss.spi.x509.ListCertificateSource certificateSource)
      Creates a list of TimestampedReferences for a OCSPResponseBinary
      Parameters:
      ocspResponseBinary - OCSPResponseBinary
      certificateSource - ListCertificateSource
      Returns:
      a list of link TimestampedReferences
    • createReferencesForCertificateRefs

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> createReferencesForCertificateRefs(Collection<eu.europa.esig.dss.spi.x509.CertificateRef> certificateRefs, eu.europa.esig.dss.spi.x509.CertificateSource currentCertificateSource, eu.europa.esig.dss.spi.x509.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
      currentCertificateSource - CertificateSource used to extract the collection of CertificateRefs
      listCertificateSource - ListCertificateSource merged certificate source
      Returns:
      a list of TimestampedReferences
    • createReferencesForCRLRefs

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> createReferencesForCRLRefs(Collection<? extends eu.europa.esig.dss.spi.x509.revocation.RevocationRef<eu.europa.esig.dss.model.x509.revocation.crl.CRL>> crlRefs, eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> currentCRLSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL> listCRLSource)
      Returns a list of timestamped references from the given collection of crlRefs
      Parameters:
      crlRefs - a collection of CRLRefs to get timestamped references from
      currentCRLSource - OfflineRevocationSource used to extract CRL references
      listCRLSource - ListRevocationSource merged CRL source
      Returns:
      a list of TimestampedReferences
    • createReferencesForOCSPRefs

      protected List<eu.europa.esig.dss.spi.x509.tsp.TimestampedReference> createReferencesForOCSPRefs(Collection<? extends eu.europa.esig.dss.spi.x509.revocation.RevocationRef<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>> ocspRefs, eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> currentOCSPSource, eu.europa.esig.dss.spi.x509.ListCertificateSource listCertificateSource, eu.europa.esig.dss.spi.x509.revocation.ListRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> listOCSPSource)
      Returns a list of timestamped references from the given collection of ocspRefs
      Parameters:
      ocspRefs - a collection of OCSPRefs to get timestamped references from
      currentOCSPSource - OfflineRevocationSource used to extract the OCSP references
      listCertificateSource - ListCertificateSource merged certificate source
      listOCSPSource - ListRevocationSource merged OCSP source
      Returns:
      a list of TimestampedReferences