AmazonCorrettoSslEngineTest Class — netty Architecture
Architecture documentation for the AmazonCorrettoSslEngineTest class in AmazonCorrettoSslEngineTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 35201cb6_a47d_5839_ecf0_7973573d09d1["AmazonCorrettoSslEngineTest"] 23504e02_9caa_ebf7_5f06_a171a4d7cb73["AmazonCorrettoSslEngineTest.java"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|defined in| 23504e02_9caa_ebf7_5f06_a171a4d7cb73 3967b303_b302_b790_e279_a1b4c6d9a189["checkIfAccpIsDisabled()"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|method| 3967b303_b302_b790_e279_a1b4c6d9a189 3f3a6edb_f951_4989_4251_8b57a34e7fee["AmazonCorrettoSslEngineTest()"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|method| 3f3a6edb_f951_4989_4251_8b57a34e7fee 5c8f3327_d6a1_e55b_f10c_8789443f462e["SslProvider()"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|method| 5c8f3327_d6a1_e55b_f10c_8789443f462e 3545db8a_db28_bb4b_24b9_31518c0f26d4["setup()"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|method| 3545db8a_db28_bb4b_24b9_31518c0f26d4 32ea5565_454d_74d4_630f_78489918e552["tearDown()"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|method| 32ea5565_454d_74d4_630f_78489918e552 f5a3650a_e3c5_b832_2337_3285d16efe62["testMutualAuthValidClientCertChainTooLongFailOptionalClientAuth()"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|method| f5a3650a_e3c5_b832_2337_3285d16efe62 2f705921_edaf_2986_ceb8_a2027d8fbc48["testMutualAuthValidClientCertChainTooLongFailRequireClientAuth()"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|method| 2f705921_edaf_2986_ceb8_a2027d8fbc48 d1570b3a_72fa_5d03_dc33_722528f3e6a2["mySetupMutualAuthServerIsValidException()"] 35201cb6_a47d_5839_ecf0_7973573d09d1 -->|method| d1570b3a_72fa_5d03_dc33_722528f3e6a2
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/AmazonCorrettoSslEngineTest.java lines 34–103
@DisabledIf("checkIfAccpIsDisabled")
public class AmazonCorrettoSslEngineTest extends SSLEngineTest {
static boolean checkIfAccpIsDisabled() {
return AmazonCorrettoCryptoProvider.INSTANCE.getLoadingError() != null ||
!AmazonCorrettoCryptoProvider.INSTANCE.runSelfTests().equals(SelfTestStatus.PASSED);
}
public AmazonCorrettoSslEngineTest() {
super(SslProvider.isTlsv13Supported(SslProvider.JDK));
}
@Override
protected SslProvider sslClientProvider() {
return SslProvider.JDK;
}
@Override
protected SslProvider sslServerProvider() {
return SslProvider.JDK;
}
@BeforeEach
@Override
public void setup() {
// See https://github.com/corretto/amazon-corretto-crypto-provider/blob/develop/README.md#code
Security.insertProviderAt(AmazonCorrettoCryptoProvider.INSTANCE, 1);
// See https://github.com/corretto/amazon-corretto-crypto-provider/blob/develop/README.md#verification-optional
try {
AmazonCorrettoCryptoProvider.INSTANCE.assertHealthy();
String providerName = Cipher.getInstance("AES/GCM/NoPadding").getProvider().getName();
assertEquals(AmazonCorrettoCryptoProvider.PROVIDER_NAME, providerName);
} catch (Throwable e) {
Security.removeProvider(AmazonCorrettoCryptoProvider.PROVIDER_NAME);
throw new AssertionError(e);
}
super.setup();
}
@AfterEach
@Override
public void tearDown() throws InterruptedException {
super.tearDown();
// Remove the provider again and verify that it was removed
Security.removeProvider(AmazonCorrettoCryptoProvider.PROVIDER_NAME);
assertNull(Security.getProvider(AmazonCorrettoCryptoProvider.PROVIDER_NAME));
}
@MethodSource("newTestParams")
@ParameterizedTest
@Disabled /* Does the JDK support a "max certificate chain length"? */
@Override
public void testMutualAuthValidClientCertChainTooLongFailOptionalClientAuth(SSLEngineTestParam param) {
}
@MethodSource("newTestParams")
@ParameterizedTest
@Disabled /* Does the JDK support a "max certificate chain length"? */
@Override
public void testMutualAuthValidClientCertChainTooLongFailRequireClientAuth(SSLEngineTestParam param) {
}
@Override
protected boolean mySetupMutualAuthServerIsValidException(Throwable cause) {
// TODO(scott): work around for a JDK issue. The exception should be SSLHandshakeException.
return super.mySetupMutualAuthServerIsValidException(cause) || causedBySSLException(cause);
}
}
Source
Frequently Asked Questions
What is the AmazonCorrettoSslEngineTest class?
AmazonCorrettoSslEngineTest is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/AmazonCorrettoSslEngineTest.java.
Where is AmazonCorrettoSslEngineTest defined?
AmazonCorrettoSslEngineTest is defined in handler/src/test/java/io/netty/handler/ssl/AmazonCorrettoSslEngineTest.java at line 34.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free