diff options
author | Alex Klyubin <klyubin@google.com> | 2015-05-26 10:40:15 -0700 |
---|---|---|
committer | Alex Klyubin <klyubin@google.com> | 2015-05-26 10:44:53 -0700 |
commit | 09a3b7f2ac3568860e1a6a08532ce31ec4b1fc14 (patch) | |
tree | 37498dd575a35e3b75696164156c5ce7e44fba01 /keystore/java | |
parent | 80370952e9008ba3949d6e9bc3412e62a05e1ba3 (diff) | |
download | frameworks_base-09a3b7f2ac3568860e1a6a08532ce31ec4b1fc14.zip frameworks_base-09a3b7f2ac3568860e1a6a08532ce31ec4b1fc14.tar.gz frameworks_base-09a3b7f2ac3568860e1a6a08532ce31ec4b1fc14.tar.bz2 |
Remove KeyStoreParameter.getContext().
This method isn't there in the released API and we don't need it in
the new API.
Bug: 18088752
Change-Id: Iccd80715bec782ac3a12bea169df4d37264f66f9
Diffstat (limited to 'keystore/java')
-rw-r--r-- | keystore/java/android/security/KeyStoreParameter.java | 18 |
1 files changed, 0 insertions, 18 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); } } |