validate
Sets a validation function for DigestCredential.
Return a principal of type P when authentication succeeds, or null when the verified credentials should not be accepted.
Parameters
body
validation function called with the current routing context after Digest credentials are verified.