create

suspend fun create(document: Document, asReplacementForIdentifier: String?, domain: String, secureArea: SecureArea, docType: String, createKeySettings: CreateKeySettings): KeyBoundMdocCredential

Create a KeyBoundMdocCredential.

Return

an uncertified KeyBoundMdocCredential which has been added to document.

Parameters

document

The document to add the credential to.

asReplacementForIdentifier

the identifier for the Credential this will replace when certified.

domain

The domain for the credential.

secureArea

The SecureArea to use for creating a key.

docType

The docType for the credential.

createKeySettings

The settings to use for key creation, including algorithm parameters.