okhttp / okhttp3 / Challenge

Challenge

class Challenge

An RFC 7235 challenge.

Constructors

<init>

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

An RFC 7235 challenge.

Properties

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.

charset

val charset: Charset

The charset that should be used to encode the credentials.

realm

val realm: String?

Returns the protection space.

scheme

val scheme: String

Returns the authentication scheme, like Basic.

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

withCharset

fun withCharset(charset: Charset): Challenge

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