/** * Returns a prefix to use before storing a password. An example usage is to * prefix the password hash with the type of hash, e.g. {MD5}. * * @return a prefix to use before storing a password. */ @Override protected String getPasswordStorePrefix() { if (getDigestAlgorithm() != null) { return "{" + getDigestAlgorithm() + "}"; } return super.getPasswordStorePrefix(); } }