Returns the password hash encoding with the algorithm tags included.
Syntax
String
getEncodedPassword
(
char[]
password
,
String
algorithm
,
boolean
shouldSalt
) throws PasswordException
Parameters
-
password –
the password to encode
-
algorithm –
the message digest algorithm to use
-
shouldSalt –
whether or not to salt the password
Returns
the encoded password
Exceptions
-
PasswordException –
if an error is encountered while encoding the password.
Usage
the encoded password