Stores credentials of type NetworkCredential for use in network-secured requests.



See also


Link copied to clipboard

Creates an empty NetworkCredentialStore for in-memory credential storage. For persistent credential storage across application sessions see createWithPersistence.


Link copied to clipboard
object Companion
Link copied to clipboard
data class Key : JsonSerializable

The key used to look up a NetworkCredential in a NetworkCredentialStore.

Link copied to clipboard

Represents a change in the NetworkCredentialStore.


Link copied to clipboard

A SharedFlow which emits StoreChangedEvent when a credential is added, updated or all credentials are removed from the store.


Link copied to clipboard
open override fun close()
Link copied to clipboard

Retrieves a list of NetworkCredentials from the store, using the provided host name. Multiple NetworkCredentials can be stored for the same hostname, but different NetworkAuthenticationTypes.

Link copied to clipboard
suspend fun removeAll(): Result<Unit>

Clears all credentials from the NetworkCredentialStore. This function suspends until all credentials have been removed from the store.