/** * Read the authenticator info from the file and populate the in-memory model */ private void buildConfiguration() { Path configFile = configFilePath != null ? Paths.get(configFilePath) : Paths.get(IdentityUtil.getIdentityConfigDirPath(), IdentityApplicationConstants.APPLICATION_AUTHENTICATION_CONGIG); try (InputStream inputStream = Files.newInputStream(configFile)) { buildConfiguration(inputStream); } catch (FileNotFoundException e) { log.error(IdentityApplicationConstants.APPLICATION_AUTHENTICATION_CONGIG + " file is not available", e); } catch (IOException e) { log.error(e); } }
/** * Read the authenticator info from the file and populate the in-memory model */ private void buildConfiguration() { Path configFile = configFilePath != null ? Paths.get(configFilePath) : Paths.get(IdentityUtil.getIdentityConfigDirPath(), IdentityApplicationConstants.APPLICATION_AUTHENTICATION_CONGIG); try (InputStream inputStream = Files.newInputStream(configFile)) { buildConfiguration(inputStream); } catch (FileNotFoundException e) { log.error(IdentityApplicationConstants.APPLICATION_AUTHENTICATION_CONGIG + " file is not available", e); } catch (IOException e) { log.error(e); } }
File MessageMgtPropertyFile = new File(IdentityUtil.getIdentityConfigDirPath(), IdentityEventConstants.PropertyConfig .CONFIG_FILE_NAME);
File MessageMgtPropertyFile = new File(IdentityUtil.getIdentityConfigDirPath(), IdentityEventConstants.PropertyConfig .CONFIG_FILE_NAME);
String warningMessage = null; File pipConfigXml = new File(IdentityUtil.getIdentityConfigDirPath(), ENTITLEMENT_CONFIG);
String warningMessage = null; File pipConfigXml = new File(IdentityUtil.getIdentityConfigDirPath(), ENTITLEMENT_CONFIG);
String warningMessage = null; File pipConfigXml = new File(IdentityUtil.getIdentityConfigDirPath(), ENTITLEMENT_CONFIG);
protected void activate(ComponentContext ctx) { try { String filePath = IdentityUtil.getIdentityConfigDirPath() + File.separator + SCIMCommonConstants.CHARON_CONFIG_NAME;
File pipConfigXml = new File(IdentityUtil.getIdentityConfigDirPath(), IdentityMgtConstants.PropertyConfig .CONFIG_FILE_NAME); if (pipConfigXml.exists()) {
File identityConfigXml = new File(IdentityUtil.getIdentityConfigDirPath(), IdentityCoreConstants.IDENTITY_CONFIG); if ( identityConfigXml.exists() ) {
File identityConfigXml = new File(IdentityUtil.getIdentityConfigDirPath(), IdentityCoreConstants.IDENTITY_CONFIG); if (identityConfigXml.exists()) {
File pipConfigXml = new File(IdentityUtil.getIdentityConfigDirPath(), IdentityMgtConstants.PropertyConfig .CONFIG_FILE_NAME); if (pipConfigXml.exists()) {
File identityConfigXml = new File(IdentityUtil.getIdentityConfigDirPath(), IdentityCoreConstants.IDENTITY_CONFIG); if ( identityConfigXml.exists() ) {
configFile = new File(configFilePath); } else { configFile = new File(IdentityUtil.getIdentityConfigDirPath(), IdentityApplicationConstants.APPLICATION_AUTHENTICATION_CONGIG);
Document document = null; try { String configFilePath = IdentityUtil.getIdentityConfigDirPath() + File.separator + "sso-idp-config.xml"; log.warn("sso-idp-config.xml does not exist in the "+IdentityUtil.getIdentityConfigDirPath() + " directory. The system may depend on the service providers added through the UI."); return new SAMLSSOServiceProviderDO[0];