/** * Decode a string value that is possibly encoded into a clear string. * @param password the string to decode. It may be a clear string too. * @return the decoded string. */ public static String decodePassword (String password) { if ( password.startsWith(ENCSTR) ) { return Base64.decodeString(password.substring(ENCSTR.length())); } else { return password; } }