testKeyTypeChangeFail() — netty Function Reference
Architecture documentation for the testKeyTypeChangeFail() function in QuicChannelConnectTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6d77dd8c_8307_59a3_6314_a082eccb5567["testKeyTypeChangeFail()"] 1e1bc485_1969_4537_ef9b_f28971b2f663["QuicChannelConnectTest"] 6d77dd8c_8307_59a3_6314_a082eccb5567 -->|defined in| 1e1bc485_1969_4537_ef9b_f28971b2f663 style 6d77dd8c_8307_59a3_6314_a082eccb5567 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelConnectTest.java lines 804–849
@ParameterizedTest
@MethodSource("newSslTaskExecutors")
public void testKeyTypeChangeFail(Executor executor) throws Throwable {
Map<String, String> serverKeyTypes = new HashMap<>();
serverKeyTypes.put("ECDHE_ECDSA", "EdDSA");
Set<String> clientKeyTypes = new HashSet<>();
clientKeyTypes.add("EdDSA");
Channel server = QuicTestUtils.newServer(QuicTestUtils.newQuicServerBuilder(executor,
QuicSslContextBuilder.forServer(
QuicTestUtils.SELF_SIGNED_CERTIFICATE.privateKey(), null,
QuicTestUtils.SELF_SIGNED_CERTIFICATE.certificate())
.applicationProtocols(QuicTestUtils.PROTOS)
.option(BoringSSLContextOption.SERVER_KEY_TYPES, serverKeyTypes)
.earlyData(true)
.build()),
TestQuicTokenHandler.INSTANCE, new ChannelInboundHandlerAdapter(),
new ChannelInboundHandlerAdapter());
InetSocketAddress address = (InetSocketAddress) server.localAddress();
QuicSslContext sslContext = QuicSslContextBuilder.forClient()
.trustManager(InsecureTrustManagerFactory.INSTANCE)
.applicationProtocols(QuicTestUtils.PROTOS)
.option(BoringSSLContextOption.CLIENT_KEY_TYPES, clientKeyTypes)
.earlyData(true)
.build();
Channel channel = QuicTestUtils.newClient(QuicTestUtils.newQuicClientBuilder(executor, sslContext)
.sslEngineProvider(q -> sslContext.newEngine(q.alloc(), "localhost", 9999)));
try {
assertThrows(ExecutionException.class, () -> {
QuicTestUtils.newQuicChannelBootstrap(channel)
.streamHandler(new ChannelInboundHandlerAdapter())
.remoteAddress(address)
.connect()
.get();
});
} finally {
server.close().sync();
channel.close().sync();
shutdown(executor);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testKeyTypeChangeFail() do?
testKeyTypeChangeFail() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelConnectTest.java.
Where is testKeyTypeChangeFail() defined?
testKeyTypeChangeFail() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelConnectTest.java at line 804.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free