private void validateSecurityConfig() { if (config.getSecurityInfo().isSecure() && securityManager == null) { throw new TCRuntimeException( "client configured as secure but was constructed without securityManager"); } if (!config.getSecurityInfo().isSecure() && securityManager != null) { throw new TCRuntimeException( "client not configured as secure but was constructed with securityManager"); } }
private void validateSecurityConfig() { if (config.getSecurityInfo().isSecure() && securityManager == null) { throw new TCRuntimeException( "client configured as secure but was constructed without securityManager"); } if (!config.getSecurityInfo().isSecure() && securityManager != null) { throw new TCRuntimeException( "client not configured as secure but was constructed with securityManager"); } }
private void validateSecurityConfig() { if (config.getSecurityInfo().isSecure() && securityManager == null) { throw new TCRuntimeException( "client configured as secure but was constructed without securityManager"); } if (!config.getSecurityInfo().isSecure() && securityManager != null) { throw new TCRuntimeException( "client not configured as secure but was constructed with securityManager"); } }
private void validateClientServerCompatibility() { try { this.config.validateClientServerCompatibility(securityManager, config.getSecurityInfo()); } catch (final ConfigurationSetupException e) { CONSOLE_LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage(), e); } }
private void validateClientServerCompatibility() { try { this.config.validateClientServerCompatibility(securityManager, config.getSecurityInfo()); } catch (final ConfigurationSetupException e) { CONSOLE_LOGGER.error(e.getMessage()); throw new IllegalStateException(e.getMessage(), e); } }
DSO_LOGGER.debug("Trying to open channel...."); final char[] pw; if (config.getSecurityInfo().hasCredentials()) { Assert.assertNotNull(securityManager); pw = securityManager.getPasswordForTC(config.getSecurityInfo().getUsername(), serverHost, serverPort); } else { pw = null;
DSO_LOGGER.debug("Trying to open channel...."); final char[] pw; if (config.getSecurityInfo().hasCredentials()) { Assert.assertNotNull(securityManager); pw = securityManager.getPasswordForTC(config.getSecurityInfo().getUsername(), serverHost, serverPort); } else { pw = null;
DSO_LOGGER.debug("Trying to open channel...."); final char[] pw; if (config.getSecurityInfo().hasCredentials()) { Assert.assertNotNull(securityManager); pw = securityManager.getPasswordForTC(config.getSecurityInfo().getUsername(), serverHost, serverPort); } else { pw = null;