createKeyBoundSdJwtVcCredentialWithSampleData
suspend fun createKeyBoundSdJwtVcCredentialWithSampleData(document: Document, secureArea: SecureArea, createKeySettings: CreateKeySettings, dsKey: AsymmetricKey.X509Certified, signedAt: Instant, validFrom: Instant, validUntil: Instant, domain: String = "sdjwt", randomProvider: Random = Random): KeyBoundSdJwtVcCredential
Adds a KeyBoundSdJwtVcCredential to a Document with sample data for the document type.
Return
the MdocCredential that was added to document.
Parameters
document
the Document to add the credential to.
secureArea
the SecureArea to use for DeviceKey.
createKeySettings
the CreateKeySettings to use.
dsKey
the key to sign the MSO with and its certificate chain.
signedAt
the time the MSO was signed.
validFrom
the time at which the credential is valid from.
validUntil
the time at which the credential is valid until.
domain
the domain to use for the credential.