validate

fun validate(body: <Error class: unknown class><DigestCredential>)

Sets a validation function that checks a specified DigestCredential instance and returns principal Any in a case of successful authentication or null if authentication fails.