sealed class HttpAuthHeader
Describes an authentication header with a mandatory authScheme that usually is a standard AuthScheme.
This can be of type HttpAuthHeader.Single or HttpAuthHeader.Parameterized.
class Parameterized : HttpAuthHeader
Describes a parameterized authentication header that is represented by a set of parameters encoded with encoding. |
|
object Parameters
Standard parameters for Parameterized. |
|
class Single : HttpAuthHeader
Describes an authentication header that is represented by a single blob. |
val authScheme: String
auth scheme, usually one of AuthScheme |
abstract fun render(encoding: HeaderValueEncoding): String
Encodes the header with a specified encoding. abstract fun render(): String
Encodes the header with the default HeaderValueEncoding for this header. |
|
open fun toString(): String
Encodes the header with the default HeaderValueEncoding for this header. |
fun basicAuthChallenge(realm: String, charset: <ERROR CLASS>?): Parameterized
Generates an AuthScheme.Basic challenge as a HttpAuthHeader. |
|
fun digestAuthChallenge(realm: String, nonce: String = generateNonce(), domain: List<String> = emptyList(), opaque: String? = null, stale: Boolean? = null, algorithm: String = "MD5"): Parameterized
Generates an AuthScheme.Digest challenge as a HttpAuthHeader. |
class Parameterized : HttpAuthHeader
Describes a parameterized authentication header that is represented by a set of parameters encoded with encoding. |
|
class Single : HttpAuthHeader
Describes an authentication header that is represented by a single blob. |