BouncyCastleEngineAlpnTest Class — netty Architecture
Architecture documentation for the BouncyCastleEngineAlpnTest class in BouncyCastleEngineAlpnTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d74f04a8_35fa_7877_d526_27327757d6b5["BouncyCastleEngineAlpnTest"] ef32528d_5a53_84e0_b415_0dd53f8b16f9["BouncyCastleEngineAlpnTest.java"] d74f04a8_35fa_7877_d526_27327757d6b5 -->|defined in| ef32528d_5a53_84e0_b415_0dd53f8b16f9 38cae09b_a696_2076_7e02_b13f20988ca5["testBouncyCastleSSLEngineSupportsAlpn()"] d74f04a8_35fa_7877_d526_27327757d6b5 -->|method| 38cae09b_a696_2076_7e02_b13f20988ca5
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/BouncyCastleEngineAlpnTest.java lines 30–55
public class BouncyCastleEngineAlpnTest {
@Test
public void testBouncyCastleSSLEngineSupportsAlpn() throws Exception {
Provider bouncyCastleProvider = new BouncyCastleJsseProvider();
SSLContext context = SslUtils.getSSLContext(bouncyCastleProvider, new SecureRandom());
SSLEngine engine = context.createSSLEngine();
assertTrue(BouncyCastleUtil.isBcJsseInUse(engine));
assertTrue(BouncyCastleAlpnSslUtils.isAlpnSupported());
BouncyCastleAlpnSslEngine alpnSslEngine = new BouncyCastleAlpnSslEngine(
engine, new JdkAlpnApplicationProtocolNegotiator("fake"), true);
// Call methods to ensure these not throw.
alpnSslEngine.setHandshakeApplicationProtocolSelector(new BiFunction<SSLEngine, List<String>, String>() {
@Override
public String apply(SSLEngine sslEngine, List<String> strings) {
return "fake";
}
});
// Check that none of the methods will throw.
alpnSslEngine.getHandshakeApplicationProtocolSelector();
alpnSslEngine.setNegotiatedApplicationProtocol("fake");
alpnSslEngine.getNegotiatedApplicationProtocol();
}
}
Source
Frequently Asked Questions
What is the BouncyCastleEngineAlpnTest class?
BouncyCastleEngineAlpnTest is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/BouncyCastleEngineAlpnTest.java.
Where is BouncyCastleEngineAlpnTest defined?
BouncyCastleEngineAlpnTest is defined in handler/src/test/java/io/netty/handler/ssl/BouncyCastleEngineAlpnTest.java at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free