Credentials

data class Credentials(val username: String? = null, val password: Secret? = null, val token: Secret? = null)

What an HTTP credential authenticates with: a user name and password, or a token.

Constructors

Link copied to clipboard
constructor(username: String? = null, password: Secret? = null, token: Secret? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for Credentials, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The password, for the basic scheme.

Link copied to clipboard

The token, for schemes such as bearer.

Link copied to clipboard

The user name, for the basic scheme.

Functions

Link copied to clipboard

Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.