Skip to main content
All Python modules · Import and compatibility guidance

Exports

Credential

Opaque material Harnest passes transiently and never serializes. Material may be a token or a framework-native credential value. Harnest keeps either form redacted and requires transport adapters to reveal it at the final outbound security boundary. Obtain this object from the owning Harnest API; its constructor includes runtime bindings.

Credential.reveal

Return credential material for transport adapters at the security boundary.

CredentialContext

Private invocation capability for resolving outbound credentials. The context deliberately exposes no provider, principal, or resource-map access. Keeping this as a dedicated type lets stage contexts share the invocation lifetime without making credential authority enumerable.

CredentialContext.resolve

Resolve opaque material using only private invocation identity.

CredentialError

Base class for safe credential-resolution failures.

CredentialProvider

Application-owned source of short-lived invocation credentials.

CredentialProvider.start

Initialize provider-owned clients before accepting invocations.

CredentialProvider.resolve

Resolve a credential for one invocation and downstream audience.

CredentialProvider.close

Release provider-owned clients after invocations have drained.

CredentialProviderError

Raised when a configured provider fails or violates its contract.

CredentialRequest

Authenticated principal and authorization scope for one resolution.
Fields (— means no declared default):

CredentialUnavailableError

Raised when an invocation cannot obtain a requested credential.

credentials

Private invocation capability for resolving outbound credentials. The context deliberately exposes no provider, principal, or resource-map access. Keeping this as a dedicated type lets stage contexts share the invocation lifetime without making credential authority enumerable.

credentials.resolve

Resolve opaque material using only private invocation identity.