PtcLlmHttp.Credential (PtcLlmHttp v0.1.0)

Copy Markdown View Source

Opaque call-local authorization material.

V1 supports no credential or one RFC 6750 bearer value. Inspection is always redacted. The BEAM cannot promise zeroization; the runtime instead minimizes copies and keeps the value out of long-lived admission state.

Summary

Functions

Validates and constructs a bounded RFC 6750 bearer credential.

Constructs the credential-free value.

Types

t()

@opaque t()

Functions

bearer(secret)

@spec bearer(binary()) :: {:ok, t()} | {:error, PtcLlmHttp.Error.t()}

Validates and constructs a bounded RFC 6750 bearer credential.

none()

@spec none() :: t()

Constructs the credential-free value.