public final class MdocEntry extends DigitalCredentialEntry


Mdoc entry, a mobile document entry whose format follows the ISO/IEC 18013-5:2021 specification.

Summary

Public constructors

MdocEntry(
    @NonNull String docType,
    @NonNull List<@NonNull MdocField> fields,
    @NonNull Set<@NonNull EntryDisplayProperties> entryDisplayPropertySet,
    @NonNull String id
)

Public methods

boolean
equals(Object other)
final @NonNull String

the DocType, e.g. "org.iso.18013.5.1.mDL" for a mobile driving license

final @NonNull List<@NonNull MdocField>

the given mdoc's individual properties used both for filtering and display purposes

int

Inherited methods

From androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialEntry
final @NonNull Set<@NonNull EntryDisplayProperties>

the display properties associated with the given entry

final @NonNull String

the provider unique identifier of this credential entry, which can be used to identify the exact credential that the user has chosen

Public constructors

MdocEntry

public MdocEntry(
    @NonNull String docType,
    @NonNull List<@NonNull MdocField> fields,
    @NonNull Set<@NonNull EntryDisplayProperties> entryDisplayPropertySet,
    @NonNull String id
)

Public methods

equals

public boolean equals(Object other)

getDocType

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

the DocType, e.g. "org.iso.18013.5.1.mDL" for a mobile driving license

getFields

Added in 1.0.0-alpha01
public final @NonNull List<@NonNull MdocFieldgetFields()

the given mdoc's individual properties used both for filtering and display purposes

hashCode

public int hashCode()