createForExistingAlias
suspend fun createForExistingAlias(document: Document, asReplacementForIdentifier: String?, domain: String, secureArea: SecureArea, vct: String, existingKeyAlias: String): KeyBoundSdJwtVcCredential
Create a KeyBoundSdJwtVcCredential using a key that already exists.
Return
an uncertified Credential 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.
vct
The Verifiable Credential Type for the credential.
existingKeyAlias
the alias for the existing key in secureArea.