Checks a message against a given digest.
This method tells whether a message corresponds to a specific digest or not by getting the salt with which the digest was created and applying it to a digest operation performed on the message. If new and existing digest match, the message is said to match the digest.
This method will be used, for instance, for password checking in authentication processes.
A null message will only match a null digest.
@param message the message to be compared to the digest. @param digest the digest. @return true if the specified message matches the digest, falseif not. @throws EncryptionOperationNotPossibleException if the digest matchingoperation fails, ommitting any further information about the cause for security reasons. @throws EncryptionInitializationException if initialization could notbe correctly done (for example, if the digest algorithm chosen cannot be used).
|
|
|
|