com.annahid.libs.artenus.security
PreferenceObfuscator
A wrapper for SharedPreferences that transparently performs data obfuscation.
public class PreferenceObfuscator
Constructor Summary
Modifier and Type | Constructor and Description |
---|---|
public | PreferenceObfuscator(SharedPreferences sp, Obfuscator o) Constructors a new instance of PreferenceObfuscator. |
Method Summary
Modifier and Type | Method and Description |
---|---|
public void | commit() Commits changes to settings. |
public String | getString(String key, String defValue) Gets the value of the specified setting. |
public void | putString(String key, String value) Sets the value for the specified setting. |
Methods inherited from java.lang.Object
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
Constructor Detail
PreferenceObfuscator | ||||
---|---|---|---|---|
public PreferenceObfuscator( SharedPreferences sp, Obfuscator o )Constructors a new instance of PreferenceObfuscator. Parameters:
|
Method Detail
commit |
---|
public void commit() Commits changes to settings. |
getString | ||||
---|---|---|---|---|
public String getString( String key, String defValue ) Gets the value of the specified setting. Parameters:
Returns:
String representation of the value |
putString | ||||
---|---|---|---|---|
public void putString( String key, String value ) Sets the value for the specified setting. Parameters:
|