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

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
val charset: <Error class: unknown class>

The charset that should be used to encode the credentials.

Link copied to clipboard

Returns the protection space.

Link copied to clipboard

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
fun withCharset(charset: <Error class: unknown class>): Challenge

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