* @param password string to be verified
* @throws InvalidAuthenticationException in case verification fails
*/
public void verify(String password) throws InvalidAuthenticationException {
if (!hashedPassword.equals(getHasher().hash(password))) {
throw new InvalidAuthenticationException(CommonErrorCode.INVALID_CREDENTIALS);
}
}