Added in API level 30

Builder


class Builder
kotlin.Any
   ↳ android.security.identity.PersonalizationData.Builder

A builder for PersonalizationData.

Summary

Public constructors

Creates a new builder for a given namespace.

Public methods
PersonalizationData.Builder

Adds a new access control profile to the builder.

PersonalizationData

Creates a new PersonalizationData with all the entries added to the builder.

PersonalizationData.Builder
putEntry(namespace: String, name: String, accessControlProfileIds: MutableCollection<AccessControlProfileId!>, value: ByteArray)

Adds a new entry to the builder.

Public constructors

Builder

Added in API level 30
Builder()

Creates a new builder for a given namespace.

Public methods

addAccessControlProfile

Added in API level 30
fun addAccessControlProfile(profile: AccessControlProfile): PersonalizationData.Builder

Adds a new access control profile to the builder.

Parameters
profile AccessControlProfile: The access control profile. This value cannot be null.
Return
PersonalizationData.Builder The builder. This value cannot be null.

build

Added in API level 30
fun build(): PersonalizationData

Creates a new PersonalizationData with all the entries added to the builder.

Return
PersonalizationData A new PersonalizationData instance. This value cannot be null.

putEntry

Added in API level 30
fun putEntry(
    namespace: String,
    name: String,
    accessControlProfileIds: MutableCollection<AccessControlProfileId!>,
    value: ByteArray
): PersonalizationData.Builder

Adds a new entry to the builder.

Parameters
namespace String: The namespace to use, e.g. org.iso.18013-5.2019. This value cannot be null.
name String: The name of the entry, e.g. height. This value cannot be null.
accessControlProfileIds MutableCollection<AccessControlProfileId!>: A set of access control profiles to use. This value cannot be null.
value ByteArray: The value to add, in CBOR encoding. This value cannot be null.
Return
PersonalizationData.Builder The builder. This value cannot be null.