All Known Implementing Classes:
FileBasedTrustListManager, MemoryTrustListManager

public interface TrustListManager
  • Method Details

    • getIssuerCrls

      List<X509CRL> getIssuerCrls()
      Get the list of Issuer CRLs.
      Returns:
      the list of Issuer X509CRLs.
    • getTrustedCrls

      List<X509CRL> getTrustedCrls()
      Get the list of Trusted CRLs.
      Returns:
      the list of Trusted X509CRLs.
    • getIssuerCertificates

      List<X509Certificate> getIssuerCertificates()
      Get the list of Issuer Certificates.
      Returns:
      the list of Issuer X509Certificates.
    • getTrustedCertificates

      List<X509Certificate> getTrustedCertificates()
      Get the list of Trusted Certificates.
      Returns:
      the list of Trusted X509Certificates.
    • setIssuerCrls

      void setIssuerCrls(List<X509CRL> issuerCrls)
      Set a new list of Issuer CRLs. This replaces any existing Issuer CRLs.
      Parameters:
      issuerCrls - a new list of issuer X509CRLs.
    • setTrustedCrls

      void setTrustedCrls(List<X509CRL> trustedCrls)
      Set a new list of Trusted CRLs. This replaces any existing Trusted CRLs.
      Parameters:
      trustedCrls - a new list of trusted X509CRLs.
    • setIssuerCertificates

      void setIssuerCertificates(List<X509Certificate> issuerCertificates)
      Set a new list of Issuer Certificates. This replaces any existing Issuer Certificates.
      Parameters:
      issuerCertificates - a new list of issuer X509Certificates.
    • setTrustedCertificates

      void setTrustedCertificates(List<X509Certificate> trustedCertificates)
      Set a new list of Trusted Certificates. This replaces any existing Trusted Certificates.
      Parameters:
      trustedCertificates - a new list of trusted X509Certificates.
    • addIssuerCertificate

      void addIssuerCertificate(X509Certificate certificate)
      Add certificate to the Issuer Certificates list.
      Parameters:
      certificate - the X509Certificate to add to the Issuer Certificates list.
    • addTrustedCertificate

      void addTrustedCertificate(X509Certificate certificate)
      Add certificate to the Trusted Certificates list.
      Parameters:
      certificate - the X509Certificate to add to the Trusted Certificates list.
    • removeIssuerCertificate

      boolean removeIssuerCertificate(ByteString thumbprint)
      Remove the certificate identified by thumbprint from the Issuer Certificates list.
      Parameters:
      thumbprint - the certificate thumbprint.
      Returns:
      true if a certificate with a matching thumbprint was found.
    • removeTrustedCertificate

      boolean removeTrustedCertificate(ByteString thumbprint)
      Remove the certificate identified by thumbprint from the Trusted Certificates list.
      Parameters:
      thumbprint - the certificate thumbprint.
      Returns:
      true if a certificate with a matching thumbprint was found.
    • getLastUpdateTime

      DateTime getLastUpdateTime()
      Get the last time the Trust List was updated.
      Returns:
      the last time the Trust List was updated.