ApiKey

data class ApiKey(val apiKey: Secret? = null) : AuthCredential

An API key, which the tool sends where the service's auth scheme says, such as in a header.

Constructors

Link copied to clipboard
constructor(apiKey: Secret? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for ApiKey, 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 key, if the credential carries one.

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.