public final class MdocField extends DigitalCredentialField


A property of a MdocEntry.

Summary

Public constructors

MdocField(
    @NonNull String fieldName,
    Object fieldValue,
    @NonNull Set<@NonNull FieldDisplayProperties> fieldDisplayPropertySet
)

Public methods

boolean
equals(Object other)
final @NonNull String

the field name, used for matching purpose; for example, the field name of an ISO mDL age-over-twenty-one property is "org.iso.18013.5.1.age_over_21"

final Object

the field value, used for matching purpose; for example, the field value of an ISO mDL age-over-twenty-one property may be true; a null value means that the exact value of this field cannot be used for matching (e.g. a user photo), or in other words, attempt to do value matching on this field will automatically fail

int

Public constructors

MdocField

public MdocField(
    @NonNull String fieldName,
    Object fieldValue,
    @NonNull Set<@NonNull FieldDisplayProperties> fieldDisplayPropertySet
)

Public methods

equals

public boolean equals(Object other)

getFieldName

Added in 1.0.0-alpha01
public final @NonNull String getFieldName()

the field name, used for matching purpose; for example, the field name of an ISO mDL age-over-twenty-one property is "org.iso.18013.5.1.age_over_21"

getFieldValue

Added in 1.0.0-alpha01
public final Object getFieldValue()

the field value, used for matching purpose; for example, the field value of an ISO mDL age-over-twenty-one property may be true; a null value means that the exact value of this field cannot be used for matching (e.g. a user photo), or in other words, attempt to do value matching on this field will automatically fail

hashCode

public int hashCode()