DigestAuthProvider
class DigestAuthProvider(credentials: suspend () -> DigestAuthCredentials?, realm: String?, algorithmName: String) : AuthProvider
Content copied to clipboard
An authentication provider for the Digest HTTP authentication scheme.
You can learn more from Digest authentication.
Constructors
Link copied to clipboard
Content copied to clipboard
Link copied to clipboard
fun DigestAuthProvider(credentials: suspend () -> DigestAuthCredentials?, realm: String? = null, algorithmName: String = "MD5")
Content copied to clipboard
Functions
Link copied to clipboard
open suspend override fun addRequestHeaders(request: HttpRequestBuilder, authHeader: HttpAuthHeader?)
Content copied to clipboard
Adds an authentication method headers and credentials.
Link copied to clipboard
Checks if the current provider is applicable to a request.
Link copied to clipboard
Refreshes a token if required.
Link copied to clipboard
open override fun sendWithoutRequest(request: HttpRequestBuilder): Boolean
Content copied to clipboard
Properties
Link copied to clipboard
Waits for HttpStatusCode.Unauthorized to send credentials.