DigestAuthProvider

class DigestAuthProvider(credentials: suspend () -> DigestAuthCredentials?, realm: String?, algorithmName: String) : AuthProvider

Client digest AuthProvider.

Constructors

Link copied to clipboard
fun DigestAuthProvider(username: String, password: String, realm: String? = null, algorithmName: String = "MD5")
Link copied to clipboard
fun DigestAuthProvider(credentials: suspend () -> DigestAuthCredentials?, realm: String? = null, algorithmName: String = "MD5")

Functions

Link copied to clipboard
open suspend override fun addRequestHeaders(request: HttpRequestBuilder)

Add authentication method headers and creds.

Link copied to clipboard
open override fun isApplicable(auth: HttpAuthHeader): Boolean

Check if current provider is applicable to the request.

Link copied to clipboard
open suspend override fun refreshToken(response: HttpResponse): Boolean

Refresh token if required.

Link copied to clipboard
open override fun sendWithoutRequest(request: HttpRequestBuilder): Boolean

Properties

Link copied to clipboard
val algorithmName: String
Link copied to clipboard
val password: String
Link copied to clipboard
val realm: String? = null
Link copied to clipboard
open override val sendWithoutRequest: Boolean

Wait for HttpStatusCode.Unauthorized to send credentials.

Link copied to clipboard
val username: String