Package web5.sdk.vc.pex
Class Field
-
- All Implemented Interfaces:
public final class FieldRepresents a field within a Verifiable Credential (VC) that must match certain criteria.
-
-
Method Summary
Modifier and Type Method Description final StringgetId()The unique identifier for the field (optional). final StringgetName()The name of the field (optional). final List<String>getPath()The JSON path to the field within the VC. final StringgetPurpose()The purpose of the field (optional). final FiltergetFilter()A filter that defines acceptable values for the field (optional). final BooleangetOptional()Indicates if the field is optional (defaults to false). final OptionalitygetPredicate()Indicates if the field is required or preferred. -
-
Method Detail
-
getPurpose
final String getPurpose()
The purpose of the field (optional).
-
getFilter
final Filter getFilter()
A filter that defines acceptable values for the field (optional).
-
getOptional
final Boolean getOptional()
Indicates if the field is optional (defaults to false).
-
getPredicate
final Optionality getPredicate()
Indicates if the field is required or preferred.
-
-
-
-