SEC-1240: Added {ssha} support to PasswordEncoderParser.

This commit is contained in:
Luke Taylor 2009-09-09 12:12:29 +00:00
parent ac4e7bbadb
commit 6640eab9dc
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ public class PasswordEncoderParser {
static final String OPT_HASH_MD4 = "md4";
static final String OPT_HASH_MD5 = "md5";
static final String OPT_HASH_LDAP_SHA = "{sha}";
static final String OPT_HASH_LDAP_SSHA = "{ssha}";
private static final Map<String, Class<? extends PasswordEncoder>> ENCODER_CLASSES;
@ -52,6 +53,7 @@ public class PasswordEncoderParser {
ENCODER_CLASSES.put(OPT_HASH_MD4, Md4PasswordEncoder.class);
ENCODER_CLASSES.put(OPT_HASH_MD5, Md5PasswordEncoder.class);
ENCODER_CLASSES.put(OPT_HASH_LDAP_SHA, LdapShaPasswordEncoder.class);
ENCODER_CLASSES.put(OPT_HASH_LDAP_SSHA, LdapShaPasswordEncoder.class);
}
private static Log logger = LogFactory.getLog(PasswordEncoderParser.class);