fun testConnectorSecuritySettingsSSL_alias_not_defined() { resetSecuritySystemProperties() var authInfo: sun.net.www.protocol.http.AuthenticationInfo? = null try { authInfo = SecurityHelper.loadAuthenticationInformation( "test.ssl.alias.not.defined.security.properties", true, TUNGSTEN_APPLICATION_NAME.CONNECTOR ) } catch (e: java.rmi.ServerRuntimeException) { assertTrue("There should not be any exception thrown", false) } catch (e: javax.naming.ConfigurationException) { assertFalse("That should not be this kind of Exception being thrown", true) } resetSecuritySystemProperties() }
Confirm behavior when connector.security.use.SSL=true and alias are not defined This shows that it uses first alias it finds