Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder for PersonalizationData
.
Summary
Public constructors |
Creates a new builder for a given namespace.
|
Public constructors
Builder
Builder()
Creates a new builder for a given namespace.
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# PersonalizationData.Builder\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/security/identity/PersonalizationData.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.security.identity.PersonalizationData.Builder](#) |\n\nA builder for [PersonalizationData](/reference/kotlin/android/security/identity/PersonalizationData).\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------|---|\n| [Builder](#Builder())`()` Creates a new builder for a given namespace. |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PersonalizationData.Builder](#) | [addAccessControlProfile](#addAccessControlProfile(android.security.identity.AccessControlProfile))`(`profile:` `[AccessControlProfile](/reference/kotlin/android/security/identity/AccessControlProfile)`)` Adds a new access control profile to the builder. |\n| [PersonalizationData](/reference/kotlin/android/security/identity/PersonalizationData) | [build](#build())`()` Creates a new [PersonalizationData](/reference/kotlin/android/security/identity/PersonalizationData) with all the entries added to the builder. |\n| [PersonalizationData.Builder](#) | [putEntry](#putEntry(kotlin.String,%20kotlin.String,%20kotlin.collections.MutableCollection,%20kotlin.ByteArray))`(`namespace:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `accessControlProfileIds:` `[MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\u003c[AccessControlProfileId](/reference/kotlin/android/security/identity/AccessControlProfileId)!\u003e`, `value:` `[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`)` Adds a new entry to the builder. |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder()\n```\n\nCreates a new builder for a given namespace.\n\nPublic methods\n--------------\n\n### addAccessControlProfile\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun addAccessControlProfile(profile: AccessControlProfile): PersonalizationData.Builder\n```\n\nAdds a new access control profile to the builder.\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `profile` | [AccessControlProfile](/reference/kotlin/android/security/identity/AccessControlProfile): The access control profile. This value cannot be `null`. |\n\n| Return ||\n|----------------------------------|-------------------------------------------|\n| [PersonalizationData.Builder](#) | The builder. This value cannot be `null`. |\n\n### build\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): PersonalizationData\n```\n\nCreates a new [PersonalizationData](/reference/kotlin/android/security/identity/PersonalizationData) with all the entries added to the builder.\n\n| Return ||\n|----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [PersonalizationData](/reference/kotlin/android/security/identity/PersonalizationData) | A new [PersonalizationData](/reference/kotlin/android/security/identity/PersonalizationData) instance. This value cannot be `null`. |\n\n### putEntry\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun putEntry(\n namespace: String, \n name: String, \n accessControlProfileIds: MutableCollection\u003cAccessControlProfileId!\u003e, \n value: ByteArray\n): PersonalizationData.Builder\n```\n\nAdds a new entry to the builder.\n\n| Parameters ||\n|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `namespace` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): The namespace to use, e.g. `org.iso.18013-5.2019`. This value cannot be `null`. |\n| `name` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): The name of the entry, e.g. `height`. This value cannot be `null`. |\n| `accessControlProfileIds` | [MutableCollection](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-collection/index.html)\\\u003c[AccessControlProfileId](/reference/kotlin/android/security/identity/AccessControlProfileId)!\\\u003e: A set of access control profiles to use. This value cannot be `null`. |\n| `value` | [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html): The value to add, in CBOR encoding. This value cannot be `null`. |\n\n| Return ||\n|----------------------------------|-------------------------------------------|\n| [PersonalizationData.Builder](#) | The builder. This value cannot be `null`. |"]]