generateRequest

fun generateRequest(origin: String, clientId: String, nonce: String, responseEncryptionKey: EcPublicKey?, requestSigningKey: EcPrivateKey?, requestSigningKeyCertification: X509CertChain?, dclqQuery: JsonObject): JsonObject

Generates an OpenID4VP 1.0 request.

Return

the OpenID4VP request.

Parameters

origin

the origin, e.g. https://verifier.multipaz.org.

clientId

the client ID, e.g. x509_san_dns:verifier.multipaz.org.

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.

requestSigningKeyCertification

the certification for requestSigningKey or null.

dclqQuery

the DCQL query.