Companion

object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun bearerAuthChallenge(scheme: String, realm: String? = null): HttpAuthHeader

Generates an AuthScheme.Bearer challenge as a HttpAuthHeader.

Link copied to clipboard
fun digestAuthChallenge(realm: String, nonce: String = generateNonce(), domain: List<String> = emptyList(), opaque: String? = null, stale: Boolean? = null, algorithm: String = "MD5"): HttpAuthHeader.Parameterized

Generates an AuthScheme.Digest challenge as a HttpAuthHeader.