/** * Returns a boolean that indicates if the <i>filter</i> mechanism should be enabled by default for users that * aren't administrators. */ public boolean getFilterByDefault() { return config.getBoolean(FILTER_BY_DEFAULT); }
public boolean isProxyEnabled() { return getBoolean("ENGINE_PROXY_ENABLED"); }
public boolean isHttpEnabled() { return getBoolean("ENGINE_HTTP_ENABLED"); }
public boolean isHttpsEnabled() { return getBoolean("ENGINE_HTTPS_ENABLED"); }
private static Map<String, String> getParams(HttpServletRequest req) { Map<String, String> params = null; if (EngineLocalConfig.getInstance().getBoolean("ENGINE_SSO_ENABLE_EXTERNAL_SSO")) { params = new HashMap<>(); Enumeration<String> headerNames = req.getHeaderNames(); while (headerNames.hasMoreElements()) { String headerName = headerNames.nextElement(); params.put(headerName, req.getHeader(headerName)); } } return params; }
public static String getEngineSsoUrl(HttpServletRequest request) { if (EngineLocalConfig.getInstance().getBoolean("ENGINE_SSO_INSTALLED_ON_ENGINE_HOST")) { return String.format("%s://%s:%s%s", request.getScheme(), FiltersHelper.getRedirectUriServerName(request.getServerName()), request.getServerPort(), EngineLocalConfig.getInstance().getProperty("ENGINE_SSO_SERVICE_URI")); } return EngineLocalConfig.getInstance().getProperty("ENGINE_SSO_AUTH_URL"); }
HttpServletResponse resp = (HttpServletResponse) response; if ((FiltersHelper.isAuthenticated(req) && FiltersHelper.isSessionValid((HttpServletRequest) request)) || !EngineLocalConfig.getInstance().getBoolean("ENGINE_RESTAPI_NEGO")) { log.debug("SsoRestApiNegotiationFilter Not performing Negotiate Auth"); chain.doFilter(request, response);
enableBackgroundCacheUpdate = config.getBoolean(ENABLE_CACHE_UPDATE_KEY, Boolean.FALSE); } catch (IllegalArgumentException e) { log.error("Missing/Invalid key \"{}\", using default value of 'false'", ENABLE_CACHE_UPDATE_KEY, e); //$NON-NLS-1$
EngineLocalConfig.getInstance().getBoolean("ENGINE_SSO_ENABLE_EXTERNAL_SSO")) { String logoutUrl = String.format("%s://%s:%s%s", request.getScheme(), FiltersHelper.getRedirectUriServerName(request.getServerName()),
EngineLocalConfig.getInstance().getBoolean( ENGINE_EXTENSION_ENABLED + normalizeName( extension.getContext().get(
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(); }