generateKey

abstract suspend fun generateKey(keyType: KeyType, keyId: String? = null): Key

Creates a new key, using platform-backed storage when this provider supports keyType.

Return

The created key.

Parameters

keyType

Key type to create.

keyId

Optional platform key identifier. When omitted, the provider generates one.