public TlsProviderBuilder trustedCertificates(String hostname,
                                                  Iterable<? extends X509Certificate> trustedCertificates) {
        requireNonNull(hostname, "hostname");
        requireNonNull(trustedCertificates, "trustedCertificates");
        x509CertificateBuilder.put(normalize(hostname), ImmutableList.copyOf(trustedCertificates));
        return this;
    }
Sets the specified {@link X509Certificate}s to the trusted certificates that will be used for verifying
the specified {@code hostname}'s certificate.

<p>The system default will be used if no specific trusted certificates are set for a hostname and no
default trusted certificates are set.
core/src/main/java/com/linecorp/armeria/common/TlsProviderBuilder.java