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.

Functions

authParams

fun 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

fun charset(): Charset

Returns the charset that should be used to encode the credentials.

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

realm

fun realm(): String?

Returns the protection space.

scheme

fun scheme(): String

Returns the authentication scheme, like Basic.

toString

fun toString(): String

withCharset

fun withCharset(charset: Charset): Challenge

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