invoke
open suspend override fun invoke(credentialIssuer: String, credentialFormat: SupportedCredentialFormat, clientId: String, clientNonce: String?): KmmResult<CredentialRequestProofContainer?>(source)
Creates the proof for a credential of credentialFormat to be requested from credentialIssuer.
Return
null if the issuer does not accept the proof type of this creator for credentialFormat, or a failure if the proof can not be created, e.g. without a key attestation the issuer requires; either way, the next creator is asked
Parameters
credentialIssuer
the Credential Issuer Identifier, i.e. the audience of the proof (8.2)
credentialFormat
the configuration of the requested credential, whose SupportedCredentialFormat.supportedProofTypes lists the proof types the issuer accepts for it
clientId
the client_id of the OAuth 2.0 client requesting the credential
clientNonce
the c_nonce from the Nonce Endpoint of the issuer (7.2), if it has one