/** * It decodes/deobfuscates an encoded password with a human readable prefix. * * @param encodedPasswordWithPrefix * @return a String containing the decoded password */ public static String decodePasswordWithPrefix(final String encodedPasswordWithPrefix) { if (encodedPasswordWithPrefix == null) { return null; } if (hasPrefix(encodedPasswordWithPrefix)) { return decodePassword(encodedPasswordWithPrefix.substring(PREFIX.length())); } else { return encodedPasswordWithPrefix; } }