HttpAuthenticationMethod

sealed interface HttpAuthenticationMethod

The HTTP authentication method to be used for generating HTTP authorization header.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication.

Inheritors

Types

Link copied to clipboard
data class Basic(val username: String, val password: String) : HttpAuthenticationMethod

See https://datatracker.ietf.org/doc/html/rfc7617.

Link copied to clipboard
data class Bearer(val token: String) : HttpAuthenticationMethod

See https://datatracker.ietf.org/doc/html/rfc6750.

Functions

Link copied to clipboard