createOnlinePresentationSession

@Blocking
fun createOnlinePresentationSession(    authorizationRequestUri: String,     authenticationOption: AuthenticationOption = AuthenticationOption.Signature,     requireTrustedVerifier: Boolean = false): OnlinePresentationSession

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

Return

OnlinePresentationSession.

Parameters

authorizationRequestUri

request_uri parameter, defined in authorizationRequestUri See also: ISO 18013-7, section B.4.2.2.

authenticationOption

Device authentication option to be used for mobile credentials which are presented in the established session.

requireTrustedVerifier

When requireTrustedVerifier is true, the signed request object (represented as a JWT), retrieved from the authorizationRequestUri, can only be validated using stored verifier certificates. When requireTrustedVerifier is false, verification is first attempted using stored verifier certificates. If it fails, the client's metadata is resolved and the JWKs from this metadata are used to validate the signed request object. Defaults to false.

Throws

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

If the authorization request URI is invalid.

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

If the response mode is not supported.

If any error occurs during the verification process.

If the algorithm is not supported.