3030import java .util .concurrent .atomic .AtomicReference ;
3131
3232import javax .net .ssl .KeyManager ;
33- import javax .net .ssl .SSLHandshakeException ;
33+ import javax .net .ssl .SSLException ;
3434
3535import io .undertow .Undertow .Builder ;
3636import io .undertow .servlet .api .DeploymentInfo ;
@@ -227,16 +227,16 @@ public void customize(Builder builder) {
227227
228228 @ Test
229229 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 )));
232232 testRestrictedSSLProtocolsAndCipherSuites (new String [] { "TLSv1.2" },
233233 new String [] { "TLS_EMPTY_RENEGOTIATION_INFO_SCSV" });
234234 }
235235
236236 @ Test
237237 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 )));
240240 testRestrictedSSLProtocolsAndCipherSuites (new String [] { "TLSv1" },
241241 new String [] { "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" });
242242 }
@@ -255,8 +255,8 @@ public void sslRestrictedProtocolsRSATLS12Success() throws Exception {
255255
256256 @ Test
257257 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 )));
260260 testRestrictedSSLProtocolsAndCipherSuites (new String [] { "TLSv1.1" },
261261 new String [] { "TLS_RSA_WITH_AES_128_CBC_SHA256" });
262262 }
0 commit comments