From 27dd1a22275e92afed612655822438ab3df15356 Mon Sep 17 00:00:00 2001 From: Alex Klyubin Date: Thu, 7 May 2015 09:51:21 -0700 Subject: Adjust the Javadoc for user authentication timeout. The Javadoc incorrectly stated that: * 0 means authentication required for every use. * -1 means that timeout is not specified and the key can be any time. Bug: 18088752 Change-Id: Ie5f37e74dc207f23443527ac1725ae8a37213d75 --- keystore/java/android/security/KeyStoreKeySpec.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keystore/java/android/security/KeyStoreKeySpec.java') diff --git a/keystore/java/android/security/KeyStoreKeySpec.java b/keystore/java/android/security/KeyStoreKeySpec.java index 96d58d8..66e9233 100644 --- a/keystore/java/android/security/KeyStoreKeySpec.java +++ b/keystore/java/android/security/KeyStoreKeySpec.java @@ -179,10 +179,10 @@ public class KeyStoreKeySpec implements KeySpec { /** * Gets the duration of time (seconds) for which this key can be used after the user is - * successfully authenticated. + * successfully authenticated. This has effect only if user authentication is required. * - * @return duration in seconds or {@code -1} if not restricted. {@code 0} means authentication - * is required for every use of the key. + * @return duration in seconds or {@code -1} if authentication is required for every use of the + * key. * * @see #isUserAuthenticationRequired() */ -- cgit v1.1