Home / Function/ loadCertCollection() — netty Function Reference

loadCertCollection() — netty Function Reference

Architecture documentation for the loadCertCollection() function in Java8SslTestUtils.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f9177407_f9ac_c507_b678_79dcd2c28e7b["loadCertCollection()"]
  0f6846ac_7487_9549_2d6d_35fbf536c0a3["Java8SslTestUtils"]
  f9177407_f9ac_c507_b678_79dcd2c28e7b -->|defined in| 0f6846ac_7487_9549_2d6d_35fbf536c0a3
  style f9177407_f9ac_c507_b678_79dcd2c28e7b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/Java8SslTestUtils.java lines 62–77

    public static X509Certificate[] loadCertCollection(String... resourceNames)
            throws Exception {
        CertificateFactory certFactory = CertificateFactory
                .getInstance("X.509");

        X509Certificate[] certCollection = new X509Certificate[resourceNames.length];
        for (int i = 0; i < resourceNames.length; i++) {
            String resourceName = resourceNames[i];
            try (InputStream is = SslContextTest.class.getResourceAsStream(resourceName)) {
                assertNotNull(is, "Cannot find " + resourceName);
                certCollection[i] = (X509Certificate) certFactory
                        .generateCertificate(is);
            }
        }
        return certCollection;
    }

Domain

Subdomains

Frequently Asked Questions

What does loadCertCollection() do?
loadCertCollection() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/Java8SslTestUtils.java.
Where is loadCertCollection() defined?
loadCertCollection() is defined in handler/src/test/java/io/netty/handler/ssl/Java8SslTestUtils.java at line 62.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free