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: Duration = DEFAULT_CREDENTIALS_REFRESH_SECONDS.seconds, refreshBufferWindow: Duration = DEFAULT_CREDENTIALS_REFRESH_BUFFER_SECONDS.seconds, clock: Clock = Clock.System): CachedCredentialsProvider

A utility function which wraps a CredentialsProvider in a CachedCredentialsProvider.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract suspend override fun resolve(attributes: Attributes): Credentials

Request credentials from the provider