public abstract class CryptoSharedPreferences extends Object implements android.content.SharedPreferences
Modifier and Type | Class and Description |
---|---|
class |
CryptoSharedPreferences.Editor |
Modifier and Type | Field and Description |
---|---|
protected static String |
CIPHER_ALGORITHM_AES |
protected static String |
CIPHER_ALGORITHM_DES |
protected android.content.Context |
context |
static int |
CRYPTO_AES |
static int |
CRYPTO_DES |
protected android.content.SharedPreferences |
delegate |
protected static int |
IV_LENGTH |
protected static String |
PBE_ALGORITHM_AES |
protected static String |
PBE_ALGORITHM_DES |
protected static String |
RANDOM_ALGORITHM |
protected static int |
SECRET_KEY_ITERATIONS |
protected static String |
UTF8 |
Constructor and Description |
---|
CryptoSharedPreferences(android.content.Context context,
android.content.SharedPreferences delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String s) |
protected String |
decrypt_AES(String value) |
protected String |
decrypt_DES(String value) |
protected String |
decrypt(String value) |
CryptoSharedPreferences.Editor |
edit() |
protected String |
encrypt_AES(String value) |
protected String |
encrypt_DES(String value) |
protected String |
encrypt(String value) |
Map<String,?> |
getAll() |
boolean |
getBoolean(String key,
boolean defValue) |
float |
getFloat(String key,
float defValue) |
int |
getInt(String key,
int defValue) |
long |
getLong(String key,
long defValue) |
protected abstract char[] |
getSpecialCode()
Implement this method to supply your char array with your password.
|
String |
getString(String key,
String defValue) |
void |
registerOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener onSharedPreferenceChangeListener) |
void |
unregisterOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener onSharedPreferenceChangeListener) |
protected static final String UTF8
protected static final int SECRET_KEY_ITERATIONS
protected static final int IV_LENGTH
protected static final String RANDOM_ALGORITHM
protected static final String CIPHER_ALGORITHM_AES
protected static final String PBE_ALGORITHM_AES
protected static final String CIPHER_ALGORITHM_DES
protected static final String PBE_ALGORITHM_DES
protected android.content.SharedPreferences delegate
protected android.content.Context context
public static final int CRYPTO_AES
public static final int CRYPTO_DES
public CryptoSharedPreferences(android.content.Context context, android.content.SharedPreferences delegate)
protected abstract char[] getSpecialCode()
public CryptoSharedPreferences.Editor edit()
edit
in interface android.content.SharedPreferences
public Map<String,?> getAll()
getAll
in interface android.content.SharedPreferences
public boolean getBoolean(String key, boolean defValue)
getBoolean
in interface android.content.SharedPreferences
public float getFloat(String key, float defValue)
getFloat
in interface android.content.SharedPreferences
public int getInt(String key, int defValue)
getInt
in interface android.content.SharedPreferences
public long getLong(String key, long defValue)
getLong
in interface android.content.SharedPreferences
public String getString(String key, String defValue)
getString
in interface android.content.SharedPreferences
public boolean contains(String s)
contains
in interface android.content.SharedPreferences
public void registerOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener onSharedPreferenceChangeListener)
registerOnSharedPreferenceChangeListener
in interface android.content.SharedPreferences
public void unregisterOnSharedPreferenceChangeListener(android.content.SharedPreferences.OnSharedPreferenceChangeListener onSharedPreferenceChangeListener)
unregisterOnSharedPreferenceChangeListener
in interface android.content.SharedPreferences
Copyright © 2011–2014. All rights reserved.