createKeylessSdJwtVcCredentialWithSampleData
suspend fun createKeylessSdJwtVcCredentialWithSampleData(document: Document, dsKey: AsymmetricKey.X509Certified, signedAt: Instant, validFrom: Instant, validUntil: Instant, domain: String = "sdjwt", randomProvider: Random = Random): KeylessSdJwtVcCredential
Adds a KeylessSdJwtVcCredential 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.
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.