3939class TestTlsCiphers {
4040
4141 static String [] testExcludeH2Blacklisted () {
42- final String [] mixCipherSuites = {
43- "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" ,
44- "TLS_RSA_WITH_AES_256_CBC_SHA256" ,
45- "AES_SHA_US" ,
46- "TLS_RSA_WITH_AES_128_CBC_SHA" ,
47- "NULL_SHA" ,
48- "TLS_RSA_WITH_AES_256_GCM_SHA384"
49- };
50- return TlsCiphers .excludeH2Blacklisted (mixCipherSuites );
51- }
42+ final String [] mixCipherSuites = {
43+ "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" ,
44+ "TLS_RSA_WITH_AES_256_CBC_SHA256" ,
45+ "AES_SHA_US" ,
46+ "TLS_RSA_WITH_AES_128_CBC_SHA" ,
47+ "NULL_SHA" ,
48+ "TLS_RSA_WITH_AES_256_GCM_SHA384"
49+ };
50+ return TlsCiphers .excludeH2Blacklisted (mixCipherSuites );
51+ }
5252
5353 static String [] testExcludeWeak () {
54- final String [] weakCiphersSuites = {
54+ final String [] weakCiphersSuites = {
5555 "SSL_RSA_WITH_RC4_128_SHA" ,
5656 "SSL_RSA_WITH_3DES_EDE_CBC_SHA" ,
5757 "TLS_DH_anon_WITH_AES_128_CBC_SHA" ,
@@ -75,26 +75,26 @@ static String[] testExcludeWeak() {
7575 "TLS_RSA_WITH_AES_256_GCM_SHA384"
7676 };
7777 return TlsCiphers .excludeWeak (weakCiphersSuites );
78- }
78+ }
7979
8080 @ ParameterizedTest
8181 @ MethodSource
8282 void testExcludeH2Blacklisted (final String strongCipherSuite ) {
8383 Assertions .assertFalse (TlsCiphers .isWeak (strongCipherSuite ));
8484 }
8585
86- @ ParameterizedTest
86+ @ ParameterizedTest
8787 @ MethodSource
8888 void testExcludeWeak (final String strongCipherSuite ) {
8989 Assertions .assertFalse (TlsCiphers .isWeak (strongCipherSuite ));
9090 }
9191
92- @ Test
92+ @ Test
9393 void testExcludeWeakNull () {
9494 Assertions .assertNull (TlsCiphers .excludeWeak ((String []) null ));
9595 }
9696
97- @ ParameterizedTest
97+ @ ParameterizedTest
9898 @ ValueSource (strings = {
9999 "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" ,
100100 "TLS_RSA_WITH_AES_256_CBC_SHA256" ,
@@ -124,9 +124,9 @@ void testStrongCipherSuites(final String strongCipherSuite) {
124124 "SSL_DH_anon_EXPORT_WITH_RC4_40_MD5" ,
125125 "TLS_KRB5_EXPORT_WITH_RC4_40_SHA" ,
126126 "SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5"
127- })
128- void testWeakCiphersDisabledByDefault (final String weakCiphersSuite ) {
129- Assertions .assertTrue (TlsCiphers .isWeak (weakCiphersSuite ));
130- }
127+ })
128+ void testWeakCiphersDisabledByDefault (final String weakCiphersSuite ) {
129+ Assertions .assertTrue (TlsCiphers .isWeak (weakCiphersSuite ));
130+ }
131131
132132}
0 commit comments