/** * Private constructor which will not allow to create objects of this class from outside */ private AuthenticationRequestCache() { super(AUTHENTICATION_REQUEST_CACHE_NAME); if (IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary") != null) { isTemporarySessionDataPersistEnabled = Boolean.parseBoolean( IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary")); } }
/** * Private constructor which will not allow to create objects of this class from outside */ private AuthenticationResultCache() { super(CACHE_NAME, true); if (IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary") != null) { isTemporarySessionDataPersistEnabled = Boolean.parseBoolean( IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary")); } }
/** * Private constructor which will not allow to create objects of this class from outside */ private AuthenticationContextCache() { super(AUTHENTICATION_CONTEXT_CACHE_NAME); if (IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary") != null) { isTemporarySessionDataPersistEnabled = Boolean.parseBoolean( IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary")); } }
/** * Private constructor which will not allow to create objects of this class from outside */ private AuthenticationRequestCache() { super(AUTHENTICATION_REQUEST_CACHE_NAME, true); if (IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary") != null) { isTemporarySessionDataPersistEnabled = Boolean.parseBoolean( IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary")); } }
private IdentityContextCache(String cacheName) { super(cacheName); if (IdentityUtil.getProperty("JDBCPersistenceManager.SessionDataPersist.Temporary") != null) { enableRequestScopeCache = Boolean.parseBoolean(IdentityUtil.getProperty( "JDBCPersistenceManager.SessionDataPersist.Temporary")); } }
protected boolean isPersistenceEnabled() { if (IdentityUtil.getProperty(OAUTH_TOKEN_PERSISTENCE_ENABLE) != null) { return Boolean.parseBoolean(IdentityUtil.getProperty(OAUTH_TOKEN_PERSISTENCE_ENABLE)); } else if (IdentityUtil.getProperty(FRAMEWORK_PERSISTENCE_ENABLE) != null) { return Boolean.parseBoolean(IdentityUtil.getProperty(FRAMEWORK_PERSISTENCE_ENABLE)); } return DEFAULT_PERSIST_ENABLED; }
/** * @return the Digest Algorithm URI defined in configuration */ public static String getDigestAlgoURIByConfig() { if (StringUtils.isNotBlank(IdentityUtil.getProperty(IdentityConstants.ServerConfig .SSO_DEFAULT_DIGEST_ALGORITHM))) { return IdentityUtil.getProperty(IdentityConstants.ServerConfig.SSO_DEFAULT_DIGEST_ALGORITHM).trim(); } else { return IdentityApplicationConstants.XML.DigestAlgorithmURI.SHA1; } }
/** * @return the Signing Algorithm URI defined in configuration */ public static String getSigningAlgoURIByConfig() { if (StringUtils.isNotBlank(IdentityUtil.getProperty(IdentityConstants.ServerConfig .SSO_DEFAULT_SIGNING_ALGORITHM))) { return IdentityUtil.getProperty(IdentityConstants.ServerConfig.SSO_DEFAULT_SIGNING_ALGORITHM).trim(); } else { return IdentityApplicationConstants.XML.SignatureAlgorithmURI.RSA_SHA1; } }
public static boolean promptOnLongWait() { boolean promptOnLongWait = false; String promptOnLongWaitString = IdentityUtil.getProperty("AdaptiveAuth.PromptOnLongWait"); if (promptOnLongWaitString != null) { promptOnLongWait = Boolean.parseBoolean(promptOnLongWaitString); } return promptOnLongWait; }
public static boolean isOpenIDLoginAccepted() { if (IdentityUtil.getProperty(IdentityConstants.ServerConfig.ACCEPT_OPENID_LOGIN) != null && !"".equals(IdentityUtil.getProperty(IdentityConstants.ServerConfig.ACCEPT_OPENID_LOGIN).trim())) { return Boolean.parseBoolean(IdentityUtil.getProperty(IdentityConstants.ServerConfig.ACCEPT_OPENID_LOGIN).trim()); } else { return false; } }
public static boolean isRecoveryEPAvailable() { String enableRecoveryEPUrlProperty = getProperty(ENABLE_RECOVERY_ENDPOINT); if (StringUtils.isNotBlank(enableRecoveryEPUrlProperty)) { return Boolean.parseBoolean(enableRecoveryEPUrlProperty); } return false; }
public static boolean isSelfSignUpEPAvailable() { String enableSelfSignEPUpUrlProperty = getProperty(ENABLE_SELF_SIGN_UP_ENDPOINT); if (StringUtils.isNotBlank(enableSelfSignEPUpUrlProperty)) { return Boolean.parseBoolean(enableSelfSignEPUpUrlProperty); } return false; }
public void init() { String poolSizeString = IdentityUtil.getProperty("AdaptiveAuth.AsyncSequenceExecutorPoolSize"); int poolSize; if (poolSizeString != null) { poolSize = Integer.parseInt(poolSizeString); } else { poolSize = 5; } executorService = Executors.newFixedThreadPool(poolSize); }
public static long getTempDataCleanUpTimeout() { String cleanUpTimeout = IdentityUtil.getProperty(IdentityConstants.ServerConfig.TEMP_DATA_CLEAN_UP_TIMEOUT); if (StringUtils.isBlank(cleanUpTimeout)) { cleanUpTimeout = IdentityConstants.ServerConfig.TEMP_DATA_CLEAN_UP_TIMEOUT_DEFAULT; } else if (!StringUtils.isNumeric(cleanUpTimeout)) { cleanUpTimeout = IdentityConstants.ServerConfig.TEMP_DATA_CLEAN_UP_TIMEOUT_DEFAULT; } return Long.parseLong(cleanUpTimeout); }
public static long getOperationCleanUpPeriod(String tenantDomain) { String cleanUpPeriod = IdentityUtil.getProperty(IdentityConstants.ServerConfig.OPERATION_CLEAN_UP_PERIOD); if (StringUtils.isBlank(cleanUpPeriod)) { cleanUpPeriod = IdentityConstants.ServerConfig.OPERATION_CLEAN_UP_PERIOD_DEFAULT; } else if (!StringUtils.isNumeric(cleanUpPeriod)) { cleanUpPeriod = IdentityConstants.ServerConfig.OPERATION_CLEAN_UP_PERIOD_DEFAULT; } return Long.parseLong(cleanUpPeriod); }
public static long getCleanUpPeriod(String tenantDomain) { String cleanUpPeriod = IdentityUtil.getProperty(IdentityConstants.ServerConfig.CLEAN_UP_PERIOD); if (StringUtils.isBlank(cleanUpPeriod)) { cleanUpPeriod = IdentityConstants.ServerConfig.CLEAN_UP_PERIOD_DEFAULT; } else if (!StringUtils.isNumeric(cleanUpPeriod)) { cleanUpPeriod = IdentityConstants.ServerConfig.CLEAN_UP_PERIOD_DEFAULT; } return Long.parseLong(cleanUpPeriod); }
/** * Get the server synchronization tolerance value in seconds * * @return clock skew in seconds */ public static int getClockSkewInSeconds() { String clockSkewConfigValue = IdentityUtil.getProperty(IdentityConstants.ServerConfig.CLOCK_SKEW); if (StringUtils.isBlank(clockSkewConfigValue) || !StringUtils.isNumeric(clockSkewConfigValue)) { clockSkewConfigValue = IdentityConstants.ServerConfig.CLOCK_SKEW_DEFAULT; } return Integer.parseInt(clockSkewConfigValue); }
public static long getCleanUpTimeout() { String cleanUpTimeout = IdentityUtil.getProperty(IdentityConstants.ServerConfig.CLEAN_UP_TIMEOUT); if (StringUtils.isBlank(cleanUpTimeout)) { cleanUpTimeout = IdentityConstants.ServerConfig.CLEAN_UP_TIMEOUT_DEFAULT; } else if (!StringUtils.isNumeric(cleanUpTimeout)) { cleanUpTimeout = IdentityConstants.ServerConfig.CLEAN_UP_TIMEOUT_DEFAULT; } return Long.parseLong(cleanUpTimeout); }
public static long getCleanUpPeriod(String tenantDomain) { String cleanUpPeriod = IdentityUtil.getProperty(IdentityConstants.ServerConfig.CLEAN_UP_PERIOD); if (StringUtils.isBlank(cleanUpPeriod)) { cleanUpPeriod = IdentityConstants.ServerConfig.CLEAN_UP_PERIOD_DEFAULT; } else if (!StringUtils.isNumeric(cleanUpPeriod)) { cleanUpPeriod = IdentityConstants.ServerConfig.CLEAN_UP_PERIOD_DEFAULT; } return Long.parseLong(cleanUpPeriod); }
public static String getOpenIDServerURL() { // Read from OpenID configuration in identity.xml String openIDServerURL = IdentityUtil.getProperty(IdentityConstants.ServerConfig.OPENID_SERVER_URL); // If configuration are not defined, build URL from server configurations. if (StringUtils.isBlank(openIDServerURL)) { openIDServerURL = IdentityUtil.getServerURL(OpenIDServerConstants.OPENID_SERVER, true, true); } return openIDServerURL; }