From db91f11f3fc8b25611accba8c798a5f33fd88ea4 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Mon, 27 Apr 2020 15:19:30 -0400 Subject: Identity Credential: Update docs to mention valid range for ACP identifiers. Bug: 155100967 Test: atest android.security.identity.cts Change-Id: I850e667676d3488be786447ed3ad33c80444f5e2 --- identity/java/android/security/identity/AccessControlProfileId.java | 2 ++ identity/java/android/security/identity/IdentityCredentialStore.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'identity/java') diff --git a/identity/java/android/security/identity/AccessControlProfileId.java b/identity/java/android/security/identity/AccessControlProfileId.java index 3d5945065ad7..6caac0a8a065 100644 --- a/identity/java/android/security/identity/AccessControlProfileId.java +++ b/identity/java/android/security/identity/AccessControlProfileId.java @@ -25,6 +25,8 @@ public class AccessControlProfileId { /** * Constructs a new object holding a numerical identifier. * + *

The identifier must be a non-negative number and less than 32. + * * @param id the identifier. */ public AccessControlProfileId(int id) { diff --git a/identity/java/android/security/identity/IdentityCredentialStore.java b/identity/java/android/security/identity/IdentityCredentialStore.java index 4f834d2b87b5..3843d9279900 100644 --- a/identity/java/android/security/identity/IdentityCredentialStore.java +++ b/identity/java/android/security/identity/IdentityCredentialStore.java @@ -46,7 +46,7 @@ import java.lang.annotation.RetentionPolicy; * access control profile IDs. Names are strings and values are typed and can be any * value supported by CBOR. * - *

  • A set of access control profiles, each with a profile ID and a specification + *
  • A set of access control profiles (up to 32), each with a profile ID and a specification * of the conditions which satisfy the profile's requirements.
  • * *
  • An asymmetric key pair which is used to authenticate the credential to the Issuing -- cgit v1.2.3-59-g8ed1b