addSampleRequest
fun addSampleRequest(id: String, displayName: String, mdocDataElements: Map<String, Map<String, Boolean>>? = null, mdocUseZkp: Boolean = false, jsonClaims: List<String>? = null): DocumentType.Builder
Adds a sample request to the document.
Parameters
id
an identifier for the request.
displayName
a short name explaining the request.
mdocDataElements
the mdoc data elements in the request, per namespace, with the intent to retain value. If the list of a namespace is empty, all defined data elements will be included with intent to retain set to false.
mdocUseZkp
true
if the sample request should indicate a preference for use of Zero-Knowledge Proofs.
jsonClaims
the claim names for JSON-based credentials in the request. If the list is empty, all defined claims will be included. Each claim name must use .
to separate path components, e.g. age_equal_or_over.18
.