createOnlinePresentationSession

@Blocking
fun createOnlinePresentationSession(authorisationRequestUri: String, requireTrustedVerifier: Boolean = false): OnlinePresentationSession

Create an online presentation session compliant with the ISO 18013-7 and OpenID4VP.

Return

OnlinePresentationSession

Parameters

authorisationRequestUri

String. Authorisation Request URI See reference from part 7 B.4.2.2 request_uri defined in https://www.rfc-editor.org/rfc/rfc9101.html

requireTrustedVerifier

Boolean. Default is false. When requireTrustedVerifier is on, only trusted verifier certificate is used for verification. When requireTrustedVerifier is off, it will first try to use trusted verifier certificate to validate, if not successful, it will resolve client_metadata, use jwks to validate Signed Request Object

Throws

If the SDK API is called before the SDK is initialised.

If the authorisation request URI is invalid.

If there is a connectivity issue while requesting the authorisation object.

If the response mode is not supported.

If any error occurs during the verification process.

If the algorithm is not supported.