Sdílet prostřednictvím


WritableIdentityCredential.Personalize(PersonalizationData) Method

Definition

Stores all of the data in the credential, with the specified access control profiles.

[Android.Runtime.Register("personalize", "(Landroid/security/identity/PersonalizationData;)[B", "GetPersonalize_Landroid_security_identity_PersonalizationData_Handler", ApiSince=30)]
public abstract byte[] Personalize (Android.Security.Identity.PersonalizationData personalizationData);
[<Android.Runtime.Register("personalize", "(Landroid/security/identity/PersonalizationData;)[B", "GetPersonalize_Landroid_security_identity_PersonalizationData_Handler", ApiSince=30)>]
abstract member Personalize : Android.Security.Identity.PersonalizationData -> byte[]

Parameters

personalizationData
PersonalizationData

The data to provision, including access control profiles and data elements and their values, grouped into namespaces.

Returns

Byte[]

A COSE_Sign1 data structure, see above.

Attributes

Remarks

Stores all of the data in the credential, with the specified access control profiles.

This method returns a COSE_Sign1 data structure signed by the CredentialKey with payload set to ProofOfProvisioning as defined below.

ProofOfProvisioning = [
                     "ProofOfProvisioning",        ; tstr
                     tstr,                         ; DocType
                     [ * AccessControlProfile ],
                     ProvisionedData,
                     bool                          ; true if this is a test credential, should
                                                   ; always be false.
                 ]

                 AccessControlProfile = {
                     "id": uint,
                     ? "readerCertificate" : bstr,
                     ? (
                          "userAuthenticationRequired" : bool,
                          "timeoutMillis" : uint,
                     )
                 }

                 ProvisionedData = {
                     * Namespace =&gt; [ + Entry ]
                 },

                 Namespace = tstr

                 Entry = {
                     "name" : tstr,
                     "value" : any,
                     "accessControlProfiles" : [ * uint ],
                 }

This data structure provides a guarantee to the issuer about the data which may be returned in the CBOR returned by ResultData#getAuthenticatedData() during a credential presentation.

Java documentation for android.security.identity.WritableIdentityCredential.personalize(android.security.identity.PersonalizationData).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to