summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-04-28 00:05:43 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-04-28 00:05:43 +0000
commit5fa58b80c7ab325436b45623ed832e09da936971 (patch)
tree06d8be4ecc76461ddef258bfa9dd895240b1708b
parent79ebf07558a57a3c570b5cae8cf48ef3c3ec7b97 (diff)
parent642b44077b4fb023f23fe6e5983f1fe940226ae5 (diff)
Merge "Identity Credential: Update docs to mention valid range for ACP identifiers." am: 642b44077b
Change-Id: I70c4915d9bbf926b576c1a9712d4ec06f1d60a26
-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