diff options
author | Alex Klyubin <klyubin@google.com> | 2015-05-07 17:34:21 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-07 17:34:25 +0000 |
commit | f555887237665fd2cd16182e63dd7ff5f4b7e708 (patch) | |
tree | 1796f540064c7b96aa7d577c5d1e15d7b672ab7f /keystore/java/android/security/KeyStoreParameter.java | |
parent | 8d7455fbe406555034e1e6ecc8f99c7949467074 (diff) | |
parent | 27dd1a22275e92afed612655822438ab3df15356 (diff) | |
download | frameworks_base-f555887237665fd2cd16182e63dd7ff5f4b7e708.zip frameworks_base-f555887237665fd2cd16182e63dd7ff5f4b7e708.tar.gz frameworks_base-f555887237665fd2cd16182e63dd7ff5f4b7e708.tar.bz2 |
Merge "Adjust the Javadoc for user authentication timeout." into mnc-dev
Diffstat (limited to 'keystore/java/android/security/KeyStoreParameter.java')
-rw-r--r-- | keystore/java/android/security/KeyStoreParameter.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/keystore/java/android/security/KeyStoreParameter.java b/keystore/java/android/security/KeyStoreParameter.java index 0584564..46d60f4 100644 --- a/keystore/java/android/security/KeyStoreParameter.java +++ b/keystore/java/android/security/KeyStoreParameter.java @@ -218,10 +218,12 @@ public final class KeyStoreParameter implements ProtectionParameter { /** * 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() */ public int getUserAuthenticationValidityDurationSeconds() { return mUserAuthenticationValidityDurationSeconds; @@ -464,7 +466,7 @@ public final class KeyStoreParameter implements ProtectionParameter { * * <p>By default, the user needs to authenticate for every use of the key. * - * @param seconds duration in seconds or {@code 0} if the user needs to authenticate for + * @param seconds duration in seconds or {@code -1} if the user needs to authenticate for * every use of the key. * * @see #setUserAuthenticationRequired(boolean) |