generateRequest
suspend fun generateRequest(version: OpenID4VP.Version, origin: String, clientId: String?, nonce: String, responseEncryptionKey: EcPublicKey?, requestSigningKey: AsymmetricKey?, responseMode: OpenID4VP.ResponseMode, responseUri: String?, dclqQuery: JsonObject): JsonObject
Generates an OpenID4VP request.
Return
the OpenID4VP request.
Parameters
version
the version of OpenID4vp to generate the request for.
origin
the origin, e.g. https://verifier.multipaz.org or android:apk-key-hash:<sha256_hash-of-apk-signing-cert>.
clientId
the client ID, e.g. x509_san_dns:verifier.multipaz.org or null.
nonce
the nonce to use.
responseEncryptionKey
the key to encrypt the response against or null.
requestSigningKey
the key to sign the request with or null.
responseMode
the response mode.
responseUri
the response URI or null.
dclqQuery
the DCQL query.