CloseableCredentialsProvider

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

Implementations MUST evict any previously-retrieved or stored credentials when the provider is closed.

Inheritors

Inherited properties

Link copied to clipboard

Retrieves the simple name of the class implementing CredentialsProvider.

Inherited functions

Link copied to clipboard
fun CredentialsProvider.cached(expireCredentialsAfter: <Error class: unknown class> = DEFAULT_CREDENTIALS_REFRESH_SECONDS.seconds, refreshBufferWindow: <Error class: unknown class> = DEFAULT_CREDENTIALS_REFRESH_BUFFER_SECONDS.seconds, clock: <Error class: unknown class> = Clock.System): CachedCredentialsProvider

A utility function which wraps a CredentialsProvider in a CachedCredentialsProvider.

Link copied to clipboard
abstract suspend fun resolve(attributes: <Error class: unknown class>): Credentials

Request credentials from the provider