# 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)

*** ** * ** ***


```
class MdocEntry : DigitalCredentialEntry
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialEntry](https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry) ||
|   | ↳ | [androidx.credentials.registry.digitalcredentials.mdoc.MdocEntry](https://developer.android.com/reference/kotlin/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/kotlin/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/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#MdocEntry(kotlin.String,kotlin.collections.List,kotlin.collections.Set,kotlin.String)( docType: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, fields: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField>, entryDisplayPropertySet: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/EntryDisplayProperties>, id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html )` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#docType()` the DocType, e.g. "org.iso.18013.5.1.mDL" for a mobile driving license |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocField>` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry#fields()` the given mdoc's individual properties used both for filtering and display purposes |

| ### Inherited properties |
|---|
| From [androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialEntry](https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry) |---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/EntryDisplayProperties>` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#entryDisplayPropertySet()` the display properties associated with the given entry | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#id()` 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

```
MdocEntry(
    docType: String,
    fields: List<MdocField>,
    entryDisplayPropertySet: Set<EntryDisplayProperties>,
    id: String
)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### docType

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
val docType: String
```

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

### fields

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
val fields: List<MdocField>
```

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