RequestOptions

data class RequestOptions(val credentials: Set<OidcSiopVerifier.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)(source)

Constructors

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

Properties

Link copied to clipboard

Optional URL to include metadata by reference instead of by value (directly embedding in authn request)

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. Beware if setting this value and also clientMetadataUrl, that the URL shall point to OidcSiopVerifier.metadataWithEncryption.

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). Be sure to separate values by a space, e.g. vp_token id_token.

Link copied to clipboard

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