Verifies the password.
@param password the plain-text password
@param hashedPassword the hashed password
@return true if the passwords match
@throws RepositoryException
Verify a password against a string previously produced with {@code hashNewPassword}. If the reference string is unsuitable in some way (e.g. bad encoding, or using a modulus other than the one used for this context), then an exception is thrown. If the reference string is proper but the password does not match, then {@code false} is returned.
@param pwd the password to verify
@param ref the reference string (hashed password)
@return {@code true} on correct password
@throws MakwaException on format error
Used to verify that the presented Password is correct. Currently only used by Management Console
@param principal The principal to authenticate
@param password The password to check
@return true if password is correct
@throws AccountNotFoundException if the principal cannot be found
Verify if the passed in password is the same as the encapsulated by this user.
@param password String representation of an non-encrypted password.
@return Return true if the passed in password is the same as theencapsulated password in this user, and return false on any error.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.