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

```
public abstract class DigitalCredentialEntry
```

<br />

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

|---|---|
| `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). |
| `https://developer.android.com/reference/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/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/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#id()` length is greater than 64 characters |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialEntry#DigitalCredentialEntry(kotlin.String,kotlin.collections.Set)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html id, @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 )` |

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

### DigitalCredentialEntry

```
public DigitalCredentialEntry(
    @NonNull String id,
    @NonNull Set<@NonNull EntryDisplayProperties> entryDisplayPropertySet
)
```

## Public methods

### getEntryDisplayPropertySet

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

```
public final @NonNull Set<@NonNull EntryDisplayProperties> getEntryDisplayPropertySet()
```

the display properties associated with the given entry

### getId

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

```
public final @NonNull String getId()
```

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