Package-level declarations

Types

Link copied to clipboard

A no-op auth scheme

Link copied to clipboard

A no-op signer that does nothing with the request

Link copied to clipboard

Anonymous identity

Link copied to clipboard
Link copied to clipboard
interface BearerToken

Represents a Bearer token identity

Link copied to clipboard

HTTP auth scheme for HTTP Bearer authentication as defined in RFC 6750

Link copied to clipboard

Represents a producer/source of Bearer authentication tokens

Link copied to clipboard

Composite BearerTokenProvider that delegates to a chain of providers. When asked for identity, providers are consulted in the order given until one succeeds. If none of the providers in the chain can provide an identity then this class will throw an exception. The exception will include the providers tried in the message. Each individual exception is available as a suppressed exception.

Link copied to clipboard

The user-accessible configuration properties for configuring a BearerTokenProvider.

Link copied to clipboard

HttpSigner that signs outgoing requests using the provided BearerToken identity

Link copied to clipboard

A BearerTokenProvider with Closeable resources. Users SHOULD call close when done with the provider to ensure any held resources are properly released.

Link copied to clipboard
class EnvironmentBearerTokenProvider(sysPropKey: String, envKey: String, platform: <Error class: unknown class> = PlatformProvider.System) : BearerTokenProvider

A BearerTokenProvider that extracts the bearer token from JVM system properties or environment variables.

Functions

Link copied to clipboard
fun reprioritizeAuthOptions(authSchemePreference: List<<Error class: unknown class>>, authOptions: List<<Error class: unknown class>>): List<<Error class: unknown class>>

Re-prioritize a resolved list of auth options based on a user's preference list