Interface CertificateSource

    • Method Detail

      • addCertificate

        CertificateToken addCertificate​(CertificateToken certificate)
        This method allows to manually add any certificate to the source. The type of the source is automatically set par each specific implementation.
        Parameters:
        certificate - the certificate you have to trust
        Returns:
        the corresponding certificate token
      • getCertificateSourceType

        CertificateSourceType getCertificateSourceType()
        This method returns the certificate source type associated to the implementation class.
        Returns:
        the certificate origin
      • getCertificates

        List<CertificateToken> getCertificates()
        Retrieves the unmodifiable list of all certificate tokens from this source.
        Returns:
        all certificates from this source
      • isTrusted

        boolean isTrusted​(CertificateToken certificateToken)
        This method checks if a given certificate is trusted
        Parameters:
        certificateToken - the certificate to be tested
        Returns:
        true if the certificate is trusted