/** * Creates a string representation of this password that is compatible with * Spring Security password encoders. * * @return The value of this object formatted as {Base64(salt)}password. */ public String format() { final StringBuilder result = new StringBuilder(); append(salt, result); result.append(password); return result.toString(); }