testMaxCertificateListAcceptingLargeLimitReject() — netty Function Reference
Architecture documentation for the testMaxCertificateListAcceptingLargeLimitReject() function in OpenSslEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 04038cac_a760_8586_4bc8_2ad13d6d73df["testMaxCertificateListAcceptingLargeLimitReject()"] 08957e63_66e1_e2b4_c8aa_4f617c598a7d["OpenSslEngineTest"] 04038cac_a760_8586_4bc8_2ad13d6d73df -->|defined in| 08957e63_66e1_e2b4_c8aa_4f617c598a7d style 04038cac_a760_8586_4bc8_2ad13d6d73df fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java lines 1692–1724
@MethodSource("newTestParams")
@ParameterizedTest
public void testMaxCertificateListAcceptingLargeLimitReject(final SSLEngineTestParam param) throws Exception {
assumeTrue(isOptionSupported(sslClientProvider(), MAX_CERTIFICATE_LIST_BYTES));
assumeTrue(isOptionSupported(sslServerProvider(), MAX_CERTIFICATE_LIST_BYTES));
X509Bundle ssc = createLargeCertificate(100 * 1024);
File privateKey = ssc.toTempPrivateKeyPem();
File certificate = ssc.toTempCertChainPem();
clientSslCtx = clientContextWithCertSizeLimit(param, certificate, privateKey, 100 * 1024);
serverSslCtx = serverContextWithCertSizeLimit(param, certificate, privateKey, 100 * 1024);
final SSLEngine client = wrapEngine(clientSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
final SSLEngine server = wrapEngine(serverSslCtx.newEngine(UnpooledByteBufAllocator.DEFAULT));
try {
SSLException e = assertThrows(SSLException.class, new Executable() {
@Override
public void execute() throws Throwable {
handshake(param.type(), param.delegate(), client, server);
}
});
// In the case of TLS_v1_3 we might only generate the exception once the actual handshake is considered
// done. If other protocols this should be generated during the handshake itself and so be of type
// SSLHandshakeException.
if (!SslProtocols.TLS_v1_3.equals(client.getSession().getProtocol())) {
assertInstanceOf(SSLHandshakeException.class, e);
}
assertThat(e.getMessage()).contains("EXCESSIVE_MESSAGE_SIZE");
} finally {
cleanupClientSslEngine(client);
cleanupServerSslEngine(server);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testMaxCertificateListAcceptingLargeLimitReject() do?
testMaxCertificateListAcceptingLargeLimitReject() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java.
Where is testMaxCertificateListAcceptingLargeLimitReject() defined?
testMaxCertificateListAcceptingLargeLimitReject() is defined in handler/src/test/java/io/netty/handler/ssl/OpenSslEngineTest.java at line 1692.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free