OpenIdRequestOptions

data class OpenIdRequestOptions(    val credentials: Set<RequestOptionsCredential>,     val responseMode: OpenIdConstants.ResponseMode = OpenIdConstants.ResponseMode.Fragment,     val responseUrl: String? = null,     val responseType: String = VP_TOKEN,     val state: String = uuid4().toString(),     val clientMetadataUrl: String? = null,     val encryption: Boolean = false,     val presentationMechanism: PresentationMechanismEnum = PresentationMechanismEnum.PresentationExchange,     val transactionData: Set<TransactionData>? = null) : RequestOptions(source)

Constructors

Link copied to clipboard
constructor(    credentials: Set<RequestOptionsCredential>,     responseMode: OpenIdConstants.ResponseMode = OpenIdConstants.ResponseMode.Fragment,     responseUrl: String? = null,     responseType: String = VP_TOKEN,     state: String = uuid4().toString(),     clientMetadataUrl: String? = null,     encryption: Boolean = false,     presentationMechanism: PresentationMechanismEnum = PresentationMechanismEnum.PresentationExchange,     transactionData: Set<TransactionData>? = null)

Properties

Link copied to clipboard
open override val clientMetadataUrl: String? = null

Optional URL to include metadata by reference (see AuthenticationRequestParameters.clientMetadataUri) instead of by value (see AuthenticationRequestParameters.clientMetadata)

Link copied to clipboard

Requested credentials, should be at least one.

Link copied to clipboard
open override val encryption: Boolean = false

Set this value to include metadata with encryption parameters set. Beware if setting this value and also clientMetadataUrl, that the URL shall point to OpenId4VpVerifier.metadataWithEncryption.

Link copied to clipboard
Link copied to clipboard
open val isDcql: Boolean
Link copied to clipboard
Link copied to clipboard
open val isSiop: Boolean
Link copied to clipboard

Presentation mechanism to be used for requesting credentials.

Link copied to clipboard

Response mode to request, see OpenIdConstants.ResponseMode, by default OpenIdConstants.ResponseMode.Fragment. Setting this to any other value may require setting responseUrl too.

Link copied to clipboard
open override val responseType: String

Response type to set in AuthenticationRequestParameters.responseType, by default only vp_token (as per OpenID4VP spec, see OpenIdConstants.VP_TOKEN). Be sure to separate values by a space, e.g. vp_token id_token (see OpenIdConstants.ID_TOKEN).

Link copied to clipboard
Link copied to clipboard
open override val state: String

Opaque value which will be returned by the OpenId Provider and also in AuthnResponseResult.

Link copied to clipboard
open override val transactionData: Set<TransactionData>? = null

Functions

Link copied to clipboard
open fun buildScope(): String
Link copied to clipboard
open override fun toDCQLQuery(): DCQLQuery?
Link copied to clipboard
open override fun toInputDescriptor(containerJwt: FormatContainerJwt, containerSdJwt: FormatContainerSdJwt): List<InputDescriptor>
Link copied to clipboard