Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# CredentialDataResult.Entries

*** ** * ** ***


`
public
static


interface
CredentialDataResult.Entries
`


`


`

|---|
| android.security.identity.CredentialDataResult.Entries |

<br />

*** ** * ** ***


**This interface was deprecated
in API level 37.2.**   

Use `java.security.KeyStore` with the Android hardware-backed keystore
instead.

A class for representing data elements returned.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NOT_IN_REQUEST_MESSAGE` The entry wasn't in the request message. |
| `int` | `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NOT_REQUESTED` The entry was not requested. |
| `int` | `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NO_ACCESS_CONTROL_PROFILES` The entry was not retrieved because it was configured without any access control profile. |
| `int` | `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NO_SUCH_ENTRY` The entry does not exist. |
| `int` | `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_OK` Value was successfully retrieved. |
| `int` | `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_READER_AUTHENTICATION_FAILED` The entry was not retrieved because reader authentication failed. |
| `int` | `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_USER_AUTHENTICATION_FAILED` The entry was not retrieved because user authentication failed. |

| ### Public methods ||
|---|---|
| ` abstract byte[]` | ` https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#getEntry(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String namespaceName, https://developer.android.com/reference/java/lang/String name) ` *This method is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |
| ` abstract https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#getEntryNames(java.lang.String)(https://developer.android.com/reference/java/lang/String namespaceName) ` *This method is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |
| ` abstract https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#getNamespaces()() ` *This method is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |
| ` abstract https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#getRetrievedEntryNames(java.lang.String)(https://developer.android.com/reference/java/lang/String namespaceName) ` *This method is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |
| ` abstract int` | ` https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#getStatus(java.lang.String,%20java.lang.String)(https://developer.android.com/reference/java/lang/String namespaceName, https://developer.android.com/reference/java/lang/String name) ` *This method is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |

## Constants

### STATUS_NOT_IN_REQUEST_MESSAGE

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATUS_NOT_IN_REQUEST_MESSAGE
```

The entry wasn't in the request message.

<br />

Constant Value:

3
(0x00000003)


### STATUS_NOT_REQUESTED

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATUS_NOT_REQUESTED
```

The entry was not requested.

<br />

Constant Value:

2
(0x00000002)


### STATUS_NO_ACCESS_CONTROL_PROFILES

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATUS_NO_ACCESS_CONTROL_PROFILES
```

The entry was not retrieved because it was configured without any access
control profile.

<br />

Constant Value:

6
(0x00000006)


### STATUS_NO_SUCH_ENTRY

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATUS_NO_SUCH_ENTRY
```

The entry does not exist.

<br />

Constant Value:

1
(0x00000001)


### STATUS_OK

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATUS_OK
```

Value was successfully retrieved.

<br />

Constant Value:

0
(0x00000000)


### STATUS_READER_AUTHENTICATION_FAILED

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATUS_READER_AUTHENTICATION_FAILED
```

The entry was not retrieved because reader authentication failed.

<br />

Constant Value:

5
(0x00000005)


### STATUS_USER_AUTHENTICATION_FAILED

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATUS_USER_AUTHENTICATION_FAILED
```

The entry was not retrieved because user authentication failed.

<br />

Constant Value:

4
(0x00000004)


## Public methods

### getEntry

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract byte[] getEntry (String namespaceName, 
                String name)
```


**This method is deprecated.**   

Use `java.security.KeyStore` with the Android hardware-backed keystore
instead.

Gets the raw CBOR data for the value of an entry.

This should only be called on an entry for which the `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#getStatus(java.lang.String,%20java.lang.String)` method returns `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_OK`.

<br />

| Parameters ||
|---|---|
| `namespaceName` | `String`: the namespace name of the entry. This value cannot be `null`. <br /> |
| `name` | `String`: the name of the entry to get the value for. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `byte[]` | the raw CBOR data or `null` if no entry with the given name exists. <br /> |

### getEntryNames

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Collection<String> getEntryNames (String namespaceName)
```


**This method is deprecated.**   

Use `java.security.KeyStore` with the Android hardware-backed keystore
instead.

Get the names of all requested entries in a name space.

This includes the name of entries that wasn't successfully retrieved.

<br />

| Parameters ||
|---|---|
| `namespaceName` | `String`: the namespace name to get entries for. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/java/lang/String>` | A collection of names for the given namespace or the empty collection if no entries was returned for the given name space. This value cannot be `null`. <br /> |

### getNamespaces

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Collection<String> getNamespaces ()
```


**This method is deprecated.**   

Use `java.security.KeyStore` with the Android hardware-backed keystore
instead.

Gets the names of namespaces with retrieved entries.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/java/lang/String>` | collection of name of namespaces containing retrieved entries. May be empty if no data was retrieved. This value cannot be `null`. <br /> |

### getRetrievedEntryNames

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Collection<String> getRetrievedEntryNames (String namespaceName)
```


**This method is deprecated.**   

Use `java.security.KeyStore` with the Android hardware-backed keystore
instead.

Get the names of all entries that was successfully retrieved from a name space.

This only return entries for which `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#getStatus(java.lang.String,%20java.lang.String)` will return
`https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_OK`.

<br />

| Parameters ||
|---|---|
| `namespaceName` | `String`: the namespace name to get entries for. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/java/lang/String>` | The entries in the given namespace that were successfully rerieved or the empty collection if no entries was returned for the given name space. This value cannot be `null`. <br /> |

### getStatus

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract int getStatus (String namespaceName, 
                String name)
```


**This method is deprecated.**   

Use `java.security.KeyStore` with the Android hardware-backed keystore
instead.

Gets the status of an entry.

This returns `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_OK` if the value was retrieved, `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NO_SUCH_ENTRY` if the given entry wasn't retrieved, `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NOT_REQUESTED` if it wasn't requested, `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NOT_IN_REQUEST_MESSAGE` if
the request message was set but the entry wasn't present in the request message, `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_USER_AUTHENTICATION_FAILED` if the value wasn't retrieved because the necessary
user authentication wasn't performed, `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_READER_AUTHENTICATION_FAILED` if
the supplied reader certificate chain didn't match the set of certificates the entry was
provisioned with, or `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NO_ACCESS_CONTROL_PROFILES` if the entry was
configured without any access control profiles.

<br />

| Parameters ||
|---|---|
| `namespaceName` | `String`: the namespace name of the entry. This value cannot be `null`. <br /> |
| `name` | `String`: the name of the entry to get the value for. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `int` | the status indicating whether the value was retrieved and if not, why. Value is one of the following: - `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_OK` - `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NO_SUCH_ENTRY` - `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NOT_REQUESTED` - `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NOT_IN_REQUEST_MESSAGE` - `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_USER_AUTHENTICATION_FAILED` - `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_READER_AUTHENTICATION_FAILED` - `https://developer.android.com/reference/android/security/identity/CredentialDataResult.Entries#STATUS_NO_ACCESS_CONTROL_PROFILES` |