Challenge

class Challenge(val scheme: String, authParams: Map<String?, String>)

An RFC 7235 challenge.

Constructors

Link copied to clipboard
constructor(scheme: String, realm: String)
constructor(scheme: String, authParams: Map<String?, String>)

Properties

Link copied to clipboard
@get:JvmName(name = "authParams")
val authParams: Map<String?, String>

Returns the auth params, including realm and charset if present, but as strings. The map's keys are lowercase and should be treated case-insensitively.

Link copied to clipboard
@get:JvmName(name = "charset")
val charset: Charset

The charset that should be used to encode the credentials.

Link copied to clipboard
@get:JvmName(name = "realm")
val realm: String?

Returns the protection space.

Link copied to clipboard
@get:JvmName(name = "scheme")
val scheme: String

Returns the authentication scheme, like Basic.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Returns a copy of this charset that expects a credential encoded with charset.