create

suspend fun create(document: Document, asReplacementForIdentifier: String?, domain: String, docType: String): KeylessMdocCredential

Create a KeylessMdocCredential.

Return

an uncertified KeylessMdocCredential 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.

docType

The docType for the credential.