# DigitalCredentialEntry

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

*** ** * ** ***

<br />

```
abstract class DigitalCredentialEntry
```

<br />

Known direct subclasses [MdocEntry](https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry), [SdJwtEntry](https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/sdjwt/SdJwtEntry)

|---|---|
| `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). |
| `https://developer.android.com/reference/kotlin/androidx/credentials/registry/digitalcredentials/sdjwt/SdJwtEntry` | A digital credential entry conforming to the [IETF SD-JWT-based Verifiable Credentials (SD-JWT VC)](https://datatracker.ietf.org/doc/draft-ietf-oauth-sd-jwt-vc/) credential format. |

*** ** * ** ***

A digital credential entry to be registered.

This entry contains information that serves two major purposes:

1. Credential metadata for filtering / request matching purpose. When another app makes a `https://developer.android.com/reference/kotlin/androidx/credentials/CredentialManager#getCredential(android.content.Context,androidx.credentials.GetCredentialRequest)` request, it will specify the specific credential properties it is looking for. The Credential Manager will use the info stored for the given entry and the registry matcher you registered to determine whether this entry can fulfill an incoming request.

2. Display metadata that will be rendered as part of the Credential Manager selector UI. The selector UI, post filtering, will display to the user their qualified, available credential candidates, in order for the user to make an informed choice.

   All display metadata will be contained in the `entryDisplayData` property.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#id()` length is greater than 64 characters |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#DigitalCredentialEntry(kotlin.String,kotlin.collections.Set)( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, 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> )` |

| ### Public properties |
|---|---|
| `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

### DigitalCredentialEntry

```
DigitalCredentialEntry(
    id: String,
    entryDisplayPropertySet: Set<EntryDisplayProperties>
)
```

## Public properties

### entryDisplayPropertySet

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

```
val entryDisplayPropertySet: Set<EntryDisplayProperties>
```

the display properties associated with the given entry

### id

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

```
val id: String
```

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