batchCreateKey

open suspend override fun batchCreateKey(numKeys: Int, createKeySettings: CreateKeySettings): BatchCreateKeyResult

Creates a batch of new keys.

An OpenID4VCI Key Attestation over all the keys may be returned. By default this doesn't happen but can be requested by specific implementations through specializations of the CreateKeySettings class.

The default implementation just calls createKey in sequence without generating an OpenID4VCI attestation.

Parameters

numKeys

number of keys to create.

createKeySettings

the settings for the keys to create.

Throws

if the underlying Secure Area Implementation does not support the requested creation settings, for example the EC curve to use.