Package org.digidoc4j

Interface TSLCertificateSource

  • All Superinterfaces:
    eu.europa.esig.dss.x509.CertificateSource, Serializable

    public interface TSLCertificateSource
    extends eu.europa.esig.dss.x509.CertificateSource
    Trusted List certificates
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      eu.europa.esig.dss.x509.CertificateToken addCertificate​(eu.europa.esig.dss.x509.CertificateToken certificate, eu.europa.esig.dss.tsl.ServiceInfo serviceInfo)
      This method allows to define (to add) any certificate as trusted.
      void addTSLCertificate​(X509Certificate certificate)
      This method allows to define (to add) any certificate as trusted.
      List<eu.europa.esig.dss.x509.CertificateToken> getCertificates()
      Retrieves the list of all certificate tokens from this source.
      void invalidateCache()
      Invalidates cache Only applicable when cache is used.
      void refresh()  
      • Methods inherited from interface eu.europa.esig.dss.x509.CertificateSource

        addCertificate, get, getCertificatePool
    • Method Detail

      • addTSLCertificate

        void addTSLCertificate​(X509Certificate certificate)
        This method allows to define (to add) any certificate as trusted.

        Use with caution: the default Trust Service Provider settings used in this method may not correspond with the actual properties of this Trust Service, specified in the official European Commission Trust List.

        This method uses a set of default settings to add a CA service issuing Qualified Certificates to the library's trust store.

        ServiceTypeIdentifier is http://uri.etsi.org/TrstSvc/Svctype/CA/QC
        ServiceStatus is http://uri.etsi.org/TrstSvc/TrustedList/Svcstatus/undersupervision
        Qualifier is http://uri.etsi.org/TrstSvc/TrustedList/SvcInfoExt/QCWithSSCD with nonRepudiation

        Parameters:
        certificate - X509 certificate to be added to the list, a certificate you have to trust.
      • addCertificate

        eu.europa.esig.dss.x509.CertificateToken addCertificate​(eu.europa.esig.dss.x509.CertificateToken certificate,
                                                                eu.europa.esig.dss.tsl.ServiceInfo serviceInfo)
        This method allows to define (to add) any certificate as trusted. A service information is associated to this certificate.
        Parameters:
        certificate - the certificate you have to trust
        serviceInfo - the service information associated to the service
        Returns:
        the corresponding certificate token
      • getCertificates

        List<eu.europa.esig.dss.x509.CertificateToken> getCertificates()
        Retrieves the list of all certificate tokens from this source.
        Returns:
        all the TSL certificates.
      • invalidateCache

        void invalidateCache()
        Invalidates cache Only applicable when cache is used.
      • refresh

        void refresh()