Class ListRevocationSource<R extends eu.europa.esig.dss.model.x509.revocation.Revocation>

java.lang.Object
eu.europa.esig.dss.validation.ListRevocationSource<R>
Type Parameters:
R - implementation of revocation data token (CRL/OCSP)
All Implemented Interfaces:
MultipleRevocationSource<R>, Serializable

public class ListRevocationSource<R extends eu.europa.esig.dss.model.x509.revocation.Revocation> extends Object implements MultipleRevocationSource<R>
This class allows to handle a list OfflineRevocationSource
See Also:
  • Constructor Details

    • ListRevocationSource

      public ListRevocationSource()
      Default constructor
    • ListRevocationSource

      public ListRevocationSource(OfflineRevocationSource<R> revocationSource)
      This constructor allows to initialize the list with an OfflineRevocationSource.
      Parameters:
      revocationSource - OfflineRevocationSource
  • Method Details

    • add

      public void add(OfflineRevocationSource<R> revocationSource)
      Adds the revocationSource to the list by keeping old values
      Parameters:
      revocationSource - OfflineRevocationSource to add
    • addAll

      public void addAll(ListRevocationSource<R> listRevocationSource)
      Adds all sources from a listRevocationSource to the list by keeping old values
      Parameters:
      listRevocationSource - ListRevocationSource to add
    • addAll

      public void addAll(List<OfflineRevocationSource<R>> revocationSources)
      Adds all revocationSources to the list by keeping old values
      Parameters:
      revocationSources - a list of OfflineRevocationSources to add
    • getSources

      public List<OfflineRevocationSource<R>> getSources()
      Gets a list of all embedded sources
      Returns:
      a list of OfflineRevocationSources
    • isEmpty

      public boolean isEmpty()
      Checks if the current ListRevocationSource and its children are empty
      Returns:
      TRUE if the current source and its children are empty, FALSE if there is at least one revocation token
    • getRevocationTokens

      public List<RevocationToken<R>> getRevocationTokens(eu.europa.esig.dss.model.x509.CertificateToken certificateToken, eu.europa.esig.dss.model.x509.CertificateToken issuerCertificateToken)
      Specified by:
      getRevocationTokens in interface MultipleRevocationSource<R extends eu.europa.esig.dss.model.x509.revocation.Revocation>
    • getAllRevocationBinaries

      public List<eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<R>> getAllRevocationBinaries()
      Gets all revocation token binaries from all incorporated sources
      Returns:
      a list of EncapsulatedRevocationTokenIdentifiers
    • findBinaryForReference

      public eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<R> findBinaryForReference(RevocationRef<R> reference)
      Gets the incorporated EncapsulatedRevocationTokenIdentifier corresponding to the provided reference
      Parameters:
      reference - RevocationRef to get revocation token identifier for
      Returns:
      EncapsulatedRevocationTokenIdentifier
    • isOrphan

      public boolean isOrphan(RevocationRef<R> reference)
      Checks if the source does not contain revocation identifiers matching to the reference
      Parameters:
      reference - RevocationRef to check
      Returns:
      TRUE if the reference is orphan, FALSE otherwise