testUntrustedCertificateWithSHA256Fingerprint() — netty Function Reference
Architecture documentation for the testUntrustedCertificateWithSHA256Fingerprint() function in FingerprintTrustManagerFactoryTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 2c23a0c7_f683_f1b8_d2e2_2350c1d217cb["testUntrustedCertificateWithSHA256Fingerprint()"] 9becb15b_a654_ff83_4d42_ffdcccac581c["FingerprintTrustManagerFactoryTest"] 2c23a0c7_f683_f1b8_d2e2_2350c1d217cb -->|defined in| 9becb15b_a654_ff83_4d42_ffdcccac581c style 2c23a0c7_f683_f1b8_d2e2_2350c1d217cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactoryTest.java lines 122–139
@Test
public void testUntrustedCertificateWithSHA256Fingerprint() throws Exception {
FingerprintTrustManagerFactory factory = FingerprintTrustManagerFactory
.builder("SHA-256")
.fingerprints(FIRST_CERT_SHA256_FINGERPRINT)
.build();
assertTrue(factory.engineGetTrustManagers().length > 0);
assertTrue(factory.engineGetTrustManagers()[0] instanceof X509TrustManager);
final X509TrustManager tm = (X509TrustManager) factory.engineGetTrustManagers()[0];
assertThrows(CertificateException.class, new Executable() {
@Override
public void execute() throws Throwable {
tm.checkClientTrusted(SECOND_CHAIN, "test");
}
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testUntrustedCertificateWithSHA256Fingerprint() do?
testUntrustedCertificateWithSHA256Fingerprint() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactoryTest.java.
Where is testUntrustedCertificateWithSHA256Fingerprint() defined?
testUntrustedCertificateWithSHA256Fingerprint() is defined in handler/src/test/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactoryTest.java at line 122.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free