Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.47 KB

File metadata and controls

29 lines (19 loc) · 1.47 KB

//document-manager/eu.europa.ec.eudi.wallet.document.credential/MdocCredentialFactory/createCredentials

createCredentials

[release]
open suspend override fun createCredentials(format: DocumentFormat, document: Document, createDocumentSettings: CreateDocumentSettings, secureArea: SecureArea): Pair<List<MdocCredential>, String?>

Creates mDL credentials for a document based on MSO mDOC format settings.

Return

a list of MdocCredential instances bound to the document

Parameters

release

format the document format, must be an instance of MsoMdocFormat
document the document that will contain the credentials
createDocumentSettings settings for creating the document credentials
secureArea the secure area for storing cryptographic keys

Throws

IllegalArgumentException if the provided format is not an instance of MsoMdocFormat