SHA implementation of PasswordEncoder.
If a null password is presented, it will be treated as an empty String ("")
password.
As SHA is a one-way hash, the salt can contain any characters. The default strength for the SHA encoding is SHA-1.
If you wish to use higher strengths use the argumented constructor.
ShaPasswordEncoder.ShaPasswordEncoder(int strength)
The applicationContext example...
<bean id="passwordEncoder" class="org.acegisecurity.providers.encoding.ShaPasswordEncoder">
<constructor-arg value="256"/>
</bean>
author: Ray Krueger author: colin sampaleanu author: Ben Alex version: $Id: ShaPasswordEncoder.java 1784 2007-02-24 21:00:24Z luke_t $ |