NetworkCredentialStore

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

Since

200.0.0

See also

Constructors

Link copied to clipboard
constructor()

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

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
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.

Properties

Link copied to clipboard

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

Functions

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.