# MdocEntry

Artifact: [androidx.credentials.registry:registry-digitalcredentials-mdoc](https://developer.android.com/jetpack/androidx/releases/credentials-registry) [View Source](https://cs.android.com/search?q=file:androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry.kt+class:androidx.credentials.registry.digitalcredentials.mdoc.MdocEntry) Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

*** ** * ** ***


```
public final class MdocEntry extends DigitalCredentialEntry
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialEntry](https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry) ||
|   | ↳ | [androidx.credentials.registry.digitalcredentials.mdoc.MdocEntry](https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry) |

*** ** * ** ***

Mdoc entry, a mobile document entry whose format follows [the ISO/IEC 18013-5:2021 specification](https://www.iso.org/standard/69084.html).

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#(kotlin.String,kotlin.collections.List,kotlin.collections.Set,kotlin.String)` length is greater than 64 characters |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#MdocEntry(kotlin.String,kotlin.collections.List,kotlin.collections.Set,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html docType, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField> fields, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/EntryDisplayProperties> entryDisplayPropertySet, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#getDocType()()` the DocType, e.g. "org.iso.18013.5.1.mDL" for a mobile driving license |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField>` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#getFields()()` the given mdoc's individual properties used both for filtering and display purposes |
| `int` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#hashCode()()` |

| ### Inherited methods |
|---|
| From [androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialEntry](https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry) |---|---| | `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/EntryDisplayProperties>` | `https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#getEntryDisplayPropertySet()()` the display properties associated with the given entry | | `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#getId()()` 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-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
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-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public final @NonNull List<@NonNull MdocField> getFields()
```

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

### hashCode

```
public int hashCode()
```