summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-04-27 23:45:10 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-04-27 23:45:10 +0000
commit642b44077b4fb023f23fe6e5983f1fe940226ae5 (patch)
tree54d1d908d899d2131b5c891b967918d0354f8ed5
parentb9c89bb3fa1d184c0a740f7b80ebdf8356fbdf9b (diff)
parentdb91f11f3fc8b25611accba8c798a5f33fd88ea4 (diff)
Merge "Identity Credential: Update docs to mention valid range for ACP identifiers."
-rw-r--r--identity/java/android/security/identity/AccessControlProfileId.java2
-rw-r--r--identity/java/android/security/identity/IdentityCredentialStore.java2
2 files changed, 3 insertions, 1 deletions
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.
*
+ * <p>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 <a href="http://cbor.io/">CBOR</a>.</li>
*
- * <li>A set of access control profiles, each with a profile ID and a specification
+ * <li>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.</li>
*
* <li>An asymmetric key pair which is used to authenticate the credential to the Issuing