← Files GoodMemARCHIVED FILE

skills/goodmem-sdk/references/java/models/ApiKeyAuth.md

826 Bytes · Oct 2, 2026 · 00:24 UTC

↓ Download file

<!-- sdk-ref package=ai.pairsys:goodmem-java registry=maven version=0.2.2 -->

# ApiKeyAuth

Configuration for classic API-key authentication.

Prefer `builder()` to the canonical record constructor.
 Builder-based call sites remain source-compatible when optional fields are added in later SDK versions.

- `inlineSecret` (`String`): Secret stored directly in GoodMem (mutually exclusive with secretRef)
- `secretRef` (`SecretReference`): Reference to an external secret manager entry (mutually exclusive with inlineSecret)
- `headerName` (`String`): Desired HTTP header to carry the credential (defaults to Authorization)
- `prefix` (`String`): Optional prefix prepended to the secret (e.g., "Bearer ")

[Java](../../java.md)

Related types — open only those used by your request:

- [SecretReference](SecretReference.md)

SHA-256: e816594515c254ebb1e9681f6718b18b9586d7c592b77ac7277956c53211a095