components/ciphertool/src/main/java/org/wso2/ciphertool/CipherTool.java
private static void loadXpathValuesAndPasswordDetails() {
        Properties cipherToolProperties =
                Utils.loadProperties(System.getProperty(Constants.CIPHER_TOOL_PROPERTY_FILE_PROPERTY));
        for (Object key : cipherToolProperties.keySet()) {
            String passwordAlias = (String) key;
            configFileXpathMap.put(passwordAlias, cipherToolProperties.getProperty(passwordAlias));
        }

        Properties cipherTextProperties =
                Utils.loadProperties(System.getProperty(Constants.CIPHER_TEXT_PROPERTY_FILE_PROPERTY));
        for (Object key : cipherTextProperties.keySet()) {
            String passwordAlias = (String) key;
            if (configFileXpathMap.containsKey(passwordAlias)) {
                aliasPasswordMap.put(passwordAlias, cipherTextProperties.getProperty(passwordAlias));
            } else {
                throw new CipherToolException("XPath value for secret alias '" + passwordAlias + "' cannot be found.");
            }
        }
    }
/**
     * loads the secret alias, config filename and xpath
     */
loads the secret alias, config filename and xpath
loads the secret alias config filename and xpath
private static void loadXpathValuesAndPasswordDetails() {
        Properties cipherToolProperties =
                Utils.loadProperties(System.getProperty(Constants.CIPHER_TOOL_PROPERTY_FILE_PROPERTY));
        for (Object key : cipherToolProperties.keySet()) {
            String passwordAlias = (String) key;
            configFileXpathMap.put(passwordAlias, cipherToolProperties.getProperty(passwordAlias));
        }
        Properties cipherTextProperties =
                Utils.loadProperties(System.getProperty(Constants.CIPHER_TEXT_PROPERTY_FILE_PROPERTY));
        for (Object key : cipherTextProperties.keySet()) {
            String passwordAlias = (String) key;
            if (configFileXpathMap.containsKey(passwordAlias)) {
                aliasPasswordMap.put(passwordAlias, cipherTextProperties.getProperty(passwordAlias));
            } else {
                throw new CipherToolException("XPath value for secret alias '" + passwordAlias + "' cannot be found.");
            }
        }
    }
private static void loadXpathValuesAndPasswordDetails ( ) { Properties cipherToolProperties = Utils . loadProperties ( System . getProperty ( Constants . CIPHER_TOOL_PROPERTY_FILE_PROPERTY ) ) ; for ( Object key : cipherToolProperties . keySet ( ) ) { String passwordAlias = ( String ) key ; configFileXpathMap . put ( passwordAlias , cipherToolProperties . getProperty ( passwordAlias ) ) ; } Properties cipherTextProperties = Utils . loadProperties ( System . getProperty ( Constants . CIPHER_TEXT_PROPERTY_FILE_PROPERTY ) ) ; for ( Object key : cipherTextProperties . keySet ( ) ) { String passwordAlias = ( String ) key ; if ( configFileXpathMap . containsKey ( passwordAlias ) ) { aliasPasswordMap . put ( passwordAlias , cipherTextProperties . getProperty ( passwordAlias ) ) ; } else { throw new CipherToolException ( "XPath value for secret alias '" + passwordAlias + "' cannot be found." ) ; } } }
loads the secret alias, config filename and xpath
loads the secret alias config filename and xpath