Merged 5.1-MC1 (5.1.0) to HEAD (5.1)

119066 adavis: Merged 5.1.N (5.1.1) to 5.1-MC1 (5.1.0)
      117349 adavis: Merged 5.0.2-CLOUD42 (Cloud ) to 5.1.N (5.1.1)
         117256 adavis: Merged 5.0.2-CLOUD (Cloud ) to 5.0.2-CLOUD42 (Cloud )
            114527 adavis: Merged BCRYPT to 5.0.2-CLOUD
               114255 gjames: createUser with a password that has already been hashed MNT-14892,RA-601


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@119905 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jean-Pierre Huynh
2015-12-10 10:00:58 +00:00
parent cb6e5c77c0
commit 5d17b7e9f3
5 changed files with 89 additions and 8 deletions

View File

@@ -35,7 +35,15 @@ public interface MutableAuthenticationDao extends AuthenticationDao, SaltSource
* Create a user with the given userName and password
*/
public void createUser(String userName, char[] rawPassword) throws AuthenticationException;
/**
* Create a user with the given userName and password hash
* If hashedPassword is passed in then this is used, otherwise it falls back to using the rawPassword.
* It is assumed the hashed password has been encoded using system.preferred.password.encoding and doesn't use its
* own salt.
*/
public void createUser(String caseSensitiveUserName, String hashedPassword, char[] rawPassword) throws AuthenticationException;
/**
* Update a user's password.
*/