From c92b40797944b0e02f77c67c278a800c8bd1afaf Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Tue, 12 Apr 2022 14:53:33 +0100 Subject: [PATCH] Clarify doc comment for setUnlockedDeviceRequired Bug: 187537410 Test: None, comment change only Change-Id: If6085fa6f46a54df0700e2599f4f98e42f33a164 --- .../java/android/security/keystore/KeyGenParameterSpec.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keystore/java/android/security/keystore/KeyGenParameterSpec.java b/keystore/java/android/security/keystore/KeyGenParameterSpec.java index 54bab4ad3780f..ffd041f60e26f 100644 --- a/keystore/java/android/security/keystore/KeyGenParameterSpec.java +++ b/keystore/java/android/security/keystore/KeyGenParameterSpec.java @@ -1637,8 +1637,8 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec, UserAu * Sets whether the keystore requires the screen to be unlocked before allowing decryption * using this key. If this is set to {@code true}, any attempt to decrypt or sign using this * key while the screen is locked will fail. A locked device requires a PIN, password, - * biometric, or other trusted factor to access. While the screen is locked, the key can - * still be used for encryption or signature verification. + * biometric, or other trusted factor to access. While the screen is locked, any associated + * public key can still be used (e.g for signature verification). */ @NonNull public Builder setUnlockedDeviceRequired(boolean unlockedDeviceRequired) {