30
30
import java .util .concurrent .atomic .AtomicReference ;
31
31
32
32
import javax .net .ssl .KeyManager ;
33
- import javax .net .ssl .SSLHandshakeException ;
33
+ import javax .net .ssl .SSLException ;
34
34
35
35
import io .undertow .Undertow .Builder ;
36
36
import io .undertow .servlet .api .DeploymentInfo ;
@@ -227,16 +227,16 @@ public void customize(Builder builder) {
227
227
228
228
@ Test
229
229
public void sslRestrictedProtocolsEmptyCipherFailure () throws Exception {
230
- this .thrown .expect (anyOf ( instanceOf ( SSLHandshakeException . class ),
231
- instanceOf (SocketException .class )));
230
+ this .thrown .expect (
231
+ anyOf ( instanceOf ( SSLException . class ), instanceOf (SocketException .class )));
232
232
testRestrictedSSLProtocolsAndCipherSuites (new String [] { "TLSv1.2" },
233
233
new String [] { "TLS_EMPTY_RENEGOTIATION_INFO_SCSV" });
234
234
}
235
235
236
236
@ Test
237
237
public void sslRestrictedProtocolsECDHETLS1Failure () throws Exception {
238
- this .thrown .expect (anyOf ( instanceOf ( SSLHandshakeException . class ),
239
- instanceOf (SocketException .class )));
238
+ this .thrown .expect (
239
+ anyOf ( instanceOf ( SSLException . class ), instanceOf (SocketException .class )));
240
240
testRestrictedSSLProtocolsAndCipherSuites (new String [] { "TLSv1" },
241
241
new String [] { "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" });
242
242
}
@@ -255,8 +255,8 @@ public void sslRestrictedProtocolsRSATLS12Success() throws Exception {
255
255
256
256
@ Test
257
257
public void sslRestrictedProtocolsRSATLS11Failure () throws Exception {
258
- this .thrown .expect (anyOf ( instanceOf ( SSLHandshakeException . class ),
259
- instanceOf (SocketException .class )));
258
+ this .thrown .expect (
259
+ anyOf ( instanceOf ( SSLException . class ), instanceOf (SocketException .class )));
260
260
testRestrictedSSLProtocolsAndCipherSuites (new String [] { "TLSv1.1" },
261
261
new String [] { "TLS_RSA_WITH_AES_128_CBC_SHA256" });
262
262
}
0 commit comments