Home / Function/ testTrustedCertificateWithSHA256Fingerprint() — netty Function Reference

testTrustedCertificateWithSHA256Fingerprint() — netty Function Reference

Architecture documentation for the testTrustedCertificateWithSHA256Fingerprint() function in FingerprintTrustManagerFactoryTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5eaa3cc5_5761_0dd0_3212_30e1d23259dd["testTrustedCertificateWithSHA256Fingerprint()"]
  9becb15b_a654_ff83_4d42_ffdcccac581c["FingerprintTrustManagerFactoryTest"]
  5eaa3cc5_5761_0dd0_3212_30e1d23259dd -->|defined in| 9becb15b_a654_ff83_4d42_ffdcccac581c
  style 5eaa3cc5_5761_0dd0_3212_30e1d23259dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactoryTest.java lines 107–120

    @Test
    public void testTrustedCertificateWithSHA256Fingerprint() throws Exception {
        FingerprintTrustManagerFactory factory = FingerprintTrustManagerFactory
                .builder("SHA-256")
                .fingerprints(FIRST_CERT_SHA256_FINGERPRINT)
                .build();

        X509Certificate[] keyCertChain = loadCertCollection("test.crt");
        assertNotNull(keyCertChain);
        assertTrue(factory.engineGetTrustManagers().length > 0);
        assertTrue(factory.engineGetTrustManagers()[0] instanceof X509TrustManager);
        X509TrustManager tm = (X509TrustManager) factory.engineGetTrustManagers()[0];
        tm.checkClientTrusted(keyCertChain, "test");
    }

Domain

Subdomains

Frequently Asked Questions

What does testTrustedCertificateWithSHA256Fingerprint() do?
testTrustedCertificateWithSHA256Fingerprint() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactoryTest.java.
Where is testTrustedCertificateWithSHA256Fingerprint() defined?
testTrustedCertificateWithSHA256Fingerprint() is defined in handler/src/test/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactoryTest.java at line 107.

Analyze Your Own Codebase

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

Try Supermodel Free