DisclosureMetadata
data class DisclosureMetadata(val claimNames: List<String> = emptyList(), val arrayDisclosures: List<DisclosureMetadata.ArrayDisclosure> = emptyList(), val discloseAll: Boolean = false)
Used to describe which claims in a JSON Object are Selectively Disclosable.
This is used with SdJwt.create to select which claims are able to be Selectively Disclosed. It is set as the "_sd" claim in each JSON Object.
Parameters
claimNames
is the list of claimNames that should be Selectively Disclosable.
arrayDisclosures
is used to allow the individual elements of an array to be Selectively Disclosable. This is in addition to allowing the entire claim to be .
discloseAll
is a convenience to make all claimNames and all array elements individually disclosable.
Constructors
Link copied to clipboard
constructor(claimNames: List<String> = emptyList(), arrayDisclosures: List<DisclosureMetadata.ArrayDisclosure> = emptyList(), discloseAll: Boolean = false)
Types
Functions
Link copied to clipboard
Extension for determining if a Claim should be made Selectively Disclosable.
Link copied to clipboard
Extension for determining if an Index in an JSON Array should be made Selectively Disclosable.
Link copied to clipboard
Create a JsonObject from this DisclosureMetadata.