1
0
mirror of synced 2026-05-22 21:33:16 +00:00

more final version of the various PasswordEncoder implementations.

add unit tests for PasswordEncoder implementations.
remove ignore password case and ignore username case flags and handling from DaoAuthenticationProvider.
remove requirement described in JavaDoc for AuthenticationDao that it ignore case when returning a user by username. Implementations may still do so if configured as such.
This commit is contained in:
Colin Sampaleanu
2004-04-15 16:32:09 +00:00
parent 41a837f8cd
commit 5d9d734735
22 changed files with 274 additions and 150 deletions
-7
View File
@@ -850,15 +850,8 @@
<para><programlisting>&lt;bean id="daoAuthenticationProvider" class="net.sf.acegisecurity.providers.dao.DaoAuthenticationProvider"&gt;
&lt;property name="authenticationDao"&gt;&lt;ref bean="inMemoryDaoImpl"/&gt;&lt;/property&gt;
&lt;property name="ignorePasswordCase"&gt;&lt;value&gt;false&lt;/value&gt;&lt;/property&gt;
&lt;property name="ignoreUsernameCase"&gt;&lt;value&gt;true&lt;/value&gt;&lt;/property&gt;
&lt;/bean&gt;</programlisting></para>
<para>By default the <literal>DaoAuthenticationProvider</literal> does
not require an exact match on usernames, but it does require an exact
match on passwords. This behavior can be configured with the optional
properties shown above.</para>
<para>For a class to be able to provide the
<literal>DaoAuthenticationProvider</literal> with access to an
authentication repository, it must implement the