/** * @throws Exception If failed. */ @Test public void testSameProtocols() throws Exception { protocols = new String[] { "TLSv1.1", "TLSv1.2" }; startGrid(); checkSuccessfulClientStart(null, new String[] { "TLSv1.1", "TLSv1.2" } ); }
/** * @throws Exception If failed. */ @Test public void testNoCommonCipherSuite() throws Exception { cipherSuites = new String[] { "TLS_RSA_WITH_AES_128_GCM_SHA256" }; startGrid(); checkClientStartFailure( new String[] { "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" }, null ); }
/** * @throws Exception If failed. */ @Test public void testOneCommonProtocol() throws Exception { protocols = new String[] { "TLSv1", "TLSv1.1", "TLSv1.2" }; startGrid(); checkSuccessfulClientStart(null, new String[] { "TLSv1.1", "SSLv3" } ); }
/** * @throws Exception If failed. */ @Test public void testOneCommonCipherSuite() throws Exception { cipherSuites = new String[] { "TLS_RSA_WITH_AES_128_GCM_SHA256", "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" }; startGrid(); checkSuccessfulClientStart( new String[] { "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" }, null ); }
/** * @throws Exception If failed. */ @Test public void testNoCommonProtocols() throws Exception { protocols = new String[] { "TLSv1.1", "SSLv3" }; startGrid(); checkClientStartFailure( null, new String[] { "TLSv1", "TLSv1.2" } ); }
/** * @throws Exception If failed. */ @Test public void testNonExistentCipherSuite() throws Exception { cipherSuites = new String[] { "TLS_RSA_WITH_AES_128_GCM_SHA256" }; startGrid(); checkClientStartFailure( new String[] { "TLC_FAKE_CIPHER", "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" }, null, IllegalArgumentException.class, "Unsupported ciphersuite" ); }
/** * @throws Exception If failed. */ @Test public void testNonExistentProtocol() throws Exception { protocols = new String[] { "SSLv3" }; startGrid(); checkClientStartFailure( null, new String[] { "SSLv3", "SSLvDoesNotExist" }, IllegalArgumentException.class, "SSLvDoesNotExist" ); }
/** * @throws Exception If failed. */ @Test public void testSameCipherSuite() throws Exception { cipherSuites = new String[] { "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_RSA_WITH_AES_128_GCM_SHA256", "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" }; startGrid(); checkSuccessfulClientStart( new String[] { "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_RSA_WITH_AES_128_GCM_SHA256", "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" }, null ); }