isPasswordCorrect
Validates if a document requires a password and tests if the provided password is correct.
Return
True if the password is correct, false if incorrect or if no password is needed.
Parameters
context
The application context.
source
The PDF document source.
password
The password to test.