public int getHttpPort() { return getInteger("ENGINE_HTTP_PORT"); }
public int getProxyHttpPort() { return getInteger("ENGINE_PROXY_HTTP_PORT"); }
public int getProxyHttpsPort() { return getInteger("ENGINE_PROXY_HTTPS_PORT"); }
public int getHttpsPort() { return getInteger("ENGINE_HTTPS_PORT"); }
private void loadDbFacadeConfig() { final EngineLocalConfig config = EngineLocalConfig.getInstance(); try { connectionTimeout = config.getInteger("ENGINE_DB_CONNECTION_TIMEOUT"); checkInterval = config.getInteger("ENGINE_DB_CHECK_INTERVAL"); } catch (Exception exception) { log.warn("Can't load connection checking parameters of DB facade, " + "will continue using the default values. Error: {}", exception.getMessage()); log.debug("Exception", exception); } } }
public SsoPostLoginServlet() { maxUserSessions = EngineLocalConfig.getInstance().getInteger("ENGINE_MAX_USER_SESSIONS"); }
username, profile, EngineLocalConfig.getInstance().getInteger("ENGINE_MAX_USER_SESSIONS")));
private static CloseableHttpClient createClient() throws IOException, GeneralSecurityException { EngineLocalConfig config = EngineLocalConfig.getInstance(); return new HttpClientBuilder() .setSslProtocol(config.getProperty("ENGINE_SSO_SERVICE_SSL_PROTOCOL")) .setPoolSize(config.getInteger("ENGINE_SSO_SERVICE_CLIENT_POOL_SIZE")) .setReadTimeout(0) .setRetryCount(config.getInteger("ENGINE_SSO_SERVICE_CONNECTION_RETRY_COUNT")) .setTrustManagerAlgorithm(TrustManagerFactory.getDefaultAlgorithm()) .setTrustStore(config.getProperty("ENGINE_HTTPS_PKI_TRUST_STORE")) .setTrustStorePassword(config.getProperty("ENGINE_HTTPS_PKI_TRUST_STORE_PASSWORD")) .setTrustStoreType(config.getProperty("ENGINE_HTTPS_PKI_TRUST_STORE_TYPE")) .setValidateAfterInactivity(config.getInteger("ENGINE_SSO_SERVICE_CONNECTION_VALIDATE_AFTER_INACTIVITY")) .setVerifyChain(config.getBoolean("ENGINE_SSO_SERVICE_SSL_VERIFY_CHAIN")) .setVerifyHost(config.getBoolean("ENGINE_SSO_SERVICE_SSL_VERIFY_HOST")) .build(); }