Added in [API level 30](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) Summary: [Ctors](https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder#pubctors) \| [Methods](https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder#inhmethods)

# PersonalizationData.Builder

*** ** * ** ***


`
public
static
final

class
PersonalizationData.Builder
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.security.identity.PersonalizationData.Builder |

<br />

*** ** * ** ***


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

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

A builder for `https://developer.android.com/reference/android/security/identity/PersonalizationData`.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder#Builder()() ` *This constructor is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder` | ` https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder#addAccessControlProfile(android.security.identity.AccessControlProfile)(https://developer.android.com/reference/android/security/identity/AccessControlProfile profile) ` *This method is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |
| ` https://developer.android.com/reference/android/security/identity/PersonalizationData` | ` https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder#build()() ` *This method is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |
| ` https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder` | ` https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder#putEntry(java.lang.String,%20java.lang.String,%20java.util.Collection<android.security.identity.AccessControlProfileId>,%20byte[])(https://developer.android.com/reference/java/lang/String namespace, https://developer.android.com/reference/java/lang/String name, https://developer.android.com/reference/java/util/Collection<https://developer.android.com/reference/android/security/identity/AccessControlProfileId> accessControlProfileIds, byte[] value) ` *This method is deprecated. Use `java.security.KeyStore` with the Android hardware-backed keystore instead.* |

### Inherited methods

From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


## Public constructors

### Builder

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

```
public Builder ()
```


**This constructor is deprecated.**   

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

Creates a new builder for a given namespace.

<br />

## Public methods

### addAccessControlProfile

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

```
public PersonalizationData.Builder addAccessControlProfile (AccessControlProfile profile)
```


**This method is deprecated.**   

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

Adds a new access control profile to the builder.

<br />

| Parameters ||
|---|---|
| `profile` | `AccessControlProfile`: The access control profile. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder` | The builder. This value cannot be `null`. <br /> |

### build

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

```
public PersonalizationData build ()
```


**This method is deprecated.**   

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

Creates a new `https://developer.android.com/reference/android/security/identity/PersonalizationData` with all the entries added to the builder.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/security/identity/PersonalizationData` | A new `https://developer.android.com/reference/android/security/identity/PersonalizationData` instance. This value cannot be `null`. <br /> |

### putEntry

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

```
public PersonalizationData.Builder putEntry (String namespace, 
                String name, 
                Collection<AccessControlProfileId> accessControlProfileIds, 
                byte[] value)
```


**This method is deprecated.**   

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

Adds a new entry to the builder.

<br />

| Parameters ||
|---|---|
| `namespace` | `String`: The namespace to use, e.g. `org.iso.18013-5.2019`. This value cannot be `null`. <br /> |
| `name` | `String`: The name of the entry, e.g. `height`. This value cannot be `null`. <br /> |
| `accessControlProfileIds` | `Collection`: A set of access control profiles to use. This value cannot be `null`. <br /> |
| `value` | `byte`: The value to add, in CBOR encoding. This value cannot be `null`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/security/identity/PersonalizationData.Builder` | The builder. This value cannot be `null`. <br /> |