diff options
Diffstat (limited to 'keystore/java')
| -rw-r--r-- | keystore/java/android/security/KeyStoreParameter.java | 18 | ||||
| -rw-r--r-- | keystore/java/android/security/keystore/KeyGenParameterSpec.java | 4 |
2 files changed, 2 insertions, 20 deletions
diff --git a/keystore/java/android/security/KeyStoreParameter.java b/keystore/java/android/security/KeyStoreParameter.java index 174e03f..66c87ed 100644 --- a/keystore/java/android/security/KeyStoreParameter.java +++ b/keystore/java/android/security/KeyStoreParameter.java @@ -19,7 +19,6 @@ package android.security; import android.annotation.NonNull; import android.app.KeyguardManager; import android.content.Context; -import android.security.keystore.KeyGenParameterSpec; import android.security.keystore.KeyProtection; import java.security.KeyPairGenerator; @@ -49,28 +48,14 @@ import java.security.KeyStore.ProtectionParameter; */ @Deprecated public final class KeyStoreParameter implements ProtectionParameter { - private final Context mContext; private final int mFlags; private KeyStoreParameter( - Context context, int flags) { - if (context == null) { - throw new IllegalArgumentException("context == null"); - } - - mContext = context; mFlags = flags; } /** - * Gets the Android context used for operations with this instance. - */ - public Context getContext() { - return mContext; - } - - /** * @hide */ public int getFlags() { @@ -115,7 +100,6 @@ public final class KeyStoreParameter implements ProtectionParameter { */ @Deprecated public final static class Builder { - private final Context mContext; private int mFlags; /** @@ -128,7 +112,6 @@ public final class KeyStoreParameter implements ProtectionParameter { if (context == null) { throw new NullPointerException("context == null"); } - mContext = context; } /** @@ -163,7 +146,6 @@ public final class KeyStoreParameter implements ProtectionParameter { @NonNull public KeyStoreParameter build() { return new KeyStoreParameter( - mContext, mFlags); } } diff --git a/keystore/java/android/security/keystore/KeyGenParameterSpec.java b/keystore/java/android/security/keystore/KeyGenParameterSpec.java index 1d4c188..d861302 100644 --- a/keystore/java/android/security/keystore/KeyGenParameterSpec.java +++ b/keystore/java/android/security/keystore/KeyGenParameterSpec.java @@ -743,7 +743,7 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * <p>This restriction applies only to private key operations. Public key operations are not * restricted. * - * <p><b>NOTE: This has currently no effect.</b> + * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @see #setUserAuthenticationValidityDurationSeconds(int) */ @@ -759,7 +759,7 @@ public final class KeyGenParameterSpec implements AlgorithmParameterSpec { * * <p>By default, the user needs to authenticate for every use of the key. * - * <p><b>NOTE: This has currently no effect.</b> + * <p><b>NOTE: This has currently no effect on asymmetric key pairs.</b> * * @param seconds duration in seconds or {@code -1} if the user needs to authenticate for * every use of the key. |
