expectedDigest
fun DigestCredential.expectedDigest(method: HttpMethod, userNameRealmPasswordDigest: ByteArray, entityBodyHash: ByteArray? = null): ByteArray(source)
Calculates the expected digest bytes for this DigestCredential per RFC 7616.
This function implements the full RFC 7616 digest calculation including
Session algorithm support (where HA1 includes nonce and cnonce)
auth-int support (where HA2 includes the entity body hash)
Parameters
method
The HTTP method of the request
userNameRealmPasswordDigest
The H(username:realm:password) value
entityBodyHash
The hash of the request entity body (for qop=auth-int)
fun DigestCredential.expectedDigest(method: HttpMethod, digester: MessageDigest, userNameRealmPasswordDigest: ByteArray): ByteArray(source)
Deprecated
Use [DigestCredential.expectedDigest] without digester.
Calculates the expected digest bytes for this DigestCredential.
This is the legacy function that does not support session algorithms or auth-int. For full RFC 7616 support, use the overload with an algorithm parameter.