Create a few unit tests for EPerson to check out new hashing

This commit is contained in:
Mark H. Wood
2012-08-03 13:40:39 -04:00
parent 8bb7a3a50f
commit b728a42739
2 changed files with 778 additions and 0 deletions

View File

@@ -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()
{