Checks if the password matches the encoded password hash.
Syntax
boolean
checkPassword
(
char[]
password
,
String
encodedPassword
) throws PasswordException
Parameters
-
password –
password to be checked
-
encodedPassword –
encoded password digest to compare against
Returns
true if they match, false otherwise
Exceptions
-
PasswordException –
if the encoded password hash is not in the expected format or if the digest algorithm ID is not valid/supported.