DCQLClaimsPathPointer

6.4. Claims Path Pointer

A claims path pointer is a pointer into the JSON structure of the Verifiable Credential, identifying one or more claims. A claims path pointer MUST be a non-empty array of strings and non-negative integers. A string value indicates that the respective key is to be selected, a null value indicates that all elements of the currently selected array(s) are to be selected; and a non-negative integer indicates that the respective index in an array is to be selected. The path is formed as follows: Start with an empty array and repeat the following until the full path is formed. To address a particular claim within an object, append the key (claim name) to the array. To address an element within an array, append the index to the array (as a non-negative, 0-based integer).To address all elements within an array, append a null value to the array. Verifiers MUST NOT point to the same claim more than once in a single query. Wallets SHOULD ignore such duplicate claim queries.

Constructors

Link copied to clipboard
constructor(vararg segments: DCQLClaimsPathPointerSegment)
constructor(startSegment: String)
constructor(startSegment: UInt)
constructor(nullValue: Nothing?)

Properties

Link copied to clipboard
open val size: Int

Functions

Link copied to clipboard
open operator fun contains(element: DCQLClaimsPathPointerSegment): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator fun get(index: Int): DCQLClaimsPathPointerSegment
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun plus(nullValue: Nothing?): DCQLClaimsPathPointer
operator fun plus(key: String): DCQLClaimsPathPointer
operator fun plus(index: UInt): DCQLClaimsPathPointer
Link copied to clipboard
fun query(jsonElement: JsonElement): NodeList

6.4.1. Processing

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun subList(fromIndex: Int, toIndex: Int): List<DCQLClaimsPathPointerSegment>
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String