RequestOptions

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

Constructors

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

Properties

Link copied to clipboard

Requested credentials, should be at least one.

Link copied to clipboard
val encryption: Boolean = false

Set this value to include metadata with encryption parameters set.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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

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
val responseUrl: String? = null

Response URL to set in the AuthenticationRequestParameters.responseUrl, required if responseMode is set to OpenIdConstants.ResponseMode.DirectPost or OpenIdConstants.ResponseMode.DirectPostJwt.

Link copied to clipboard

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

Link copied to clipboard

Non-empty array of strings, where each string is a base64url-encoded JSON object that contains a typed parameter set with details about the transaction that the Verifier is requesting the End-User to authorize.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard