mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Create a few unit tests for EPerson to check out new hashing
This commit is contained in:
@@ -203,6 +203,16 @@ public class PasswordHash
|
||||
return algorithm;
|
||||
}
|
||||
|
||||
/**
|
||||
* The digest algorithm used if none is configured.
|
||||
*
|
||||
* @return name of the default digest.
|
||||
*/
|
||||
static public String getDefaultAlgorithm()
|
||||
{
|
||||
return DEFAULT_DIGEST_ALGORITHM;
|
||||
}
|
||||
|
||||
/** Generate an array of random bytes. */
|
||||
private synchronized byte[] generateSalt()
|
||||
{
|
||||
|
Reference in New Issue
Block a user