public static void modifyOneProfile ( File destination , String profileName , Profile newProfile ) { final Map < String , Profile > modifications = Collections . singletonMap ( profileName , newProfile ) ; modifyProfiles ( destination , modifications ) ; }
Modify one profile in the existing credentials file by in - place modification . This method will rename the existing profile if the specified Profile has a different name .